summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-10-14 08:35:09 +0200
committerAllan McRae <allan@archlinux.org>2013-10-15 04:40:53 +0200
commite7ad883ebe41a25a63f4349ea08d589ec48c3539 (patch)
treed15973c18f72d2221059dff44b95e072f5e99332 /scripts
parentc69d71d55bfab10c1d021a0db3efe793250f687a (diff)
downloadpacman-e7ad883ebe41a25a63f4349ea08d589ec48c3539.tar.gz
pacman-e7ad883ebe41a25a63f4349ea08d589ec48c3539.tar.xz
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 1 insertions, 1 deletions
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