After updating the pkgver, we still need to safely source the BUILDFILE.

Signed-off-by: Allan McRae <[email protected]>
---
 scripts/makepkg.sh.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 2b01c46..cedef4c 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -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
-- 
1.8.4


Reply via email to