From e7ad883ebe41a25a63f4349ea08d589ec48c3539 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 14 Oct 2013 16:35:09 +1000 Subject: makepkg: use source_safe when resourcing BUILDFILE After updating the pkgver, we still need to safely source the BUILDFILE. Signed-off-by: Allan McRae --- 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 2b01c468..cedef4c6 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 -- cgit v1.2.3