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

Thomas Bächler thomas at archlinux.org
Sat Mar 17 15:26:56 EDT 2012


Am 17.03.2012 20:05, schrieb Matthew Monaco:
> 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

As discussed somewhere else in this thread, the devel build shouldn't
modify the PKGBUILD at all.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/pacman-dev/attachments/20120317/2be2fbad/attachment.asc>


More information about the pacman-dev mailing list