[pacman-dev] [PATCH] makepkg: use source_safe when resourcing BUILDFILE

Allan McRae allan at archlinux.org
Mon Oct 14 02:36:01 EDT 2013


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

Signed-off-by: Allan McRae <allan at archlinux.org>
---
 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



More information about the pacman-dev mailing list