[pacman-dev] The great VCS packages overhaul of 2015

Matthew Monaco dgbaley27 at 0x01b.net
Sat Mar 17 15:05:20 EDT 2012


On 03/12/2012 09:58 PM, Allan McRae wrote:
> blah

I have a patch that I've tested (a little bit) that appears to work...

Is there any reason why devel_update() actually needs to do an in-place sed? I
replaced it with an eval and its working fine.

The function now looks like:

  if [[ -n $newpkgver ]]; then
    if [[ $newpkgver != "$pkgver" ]]; then
      eval $(sed -e "s/^pkgver=[^ ]*/pkgver=$newpkgver/" \
                 -e "s/^pkgrel=[^ ]*/pkgrel=1/" \
                 "$BUILDFILE")
    fi
  fi

>From the git history it looks like it's been in-place since the start, so I
can't find any explanation if it exists.


More information about the pacman-dev mailing list