makepkg: use source_safe when resourcing BUILDFILE
After updating the pkgver, we still need to safely source the BUILDFILE. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
c69d71d55b
commit
e7ad883ebe
|
@ -815,7 +815,7 @@ update_pkgver() {
|
|||
if [[ -f $BUILDFILE && -w $BUILDFILE ]]; then
|
||||
@SEDINPLACE@ "s/^pkgver=[^ ]*/pkgver=$newpkgver/" "$BUILDFILE"
|
||||
@SEDINPLACE@ "s/^pkgrel=[^ ]*/pkgrel=1/" "$BUILDFILE"
|
||||
source "$BUILDFILE"
|
||||
source_safe "$BUILDFILE"
|
||||
local fullver=$(get_full_version)
|
||||
msg "$(gettext "Updated version: %s")" "$pkgbase $fullver"
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue