17 Mar
2012
17 Mar
'12
7:05 p.m.
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.