Skip to content
Snippets Groups Projects
Commit 1e656c0a authored by Allan McRae's avatar Allan McRae :speech_balloon: Committed by Dan McGee
Browse files

makepkg: fix updating PKGBUILD when building SCM packages


Fixes a bug and resets pkgrel to 1 when bumping pkgver

Signed-off-by: default avatarAllan McRae <allan@archlinux.org>
Signed-off-by: default avatarDan McGee <dan@archlinux.org>
parent 50e3dc02
No related branches found
No related tags found
No related merge requests found
......@@ -1069,6 +1069,7 @@ devel_check() {
if [ "$newpkgver" != "" ]; then
msg2 "$(gettext "Version found: %s")" "$newpkgver"
pkgver=$newpkgver
pkgrel=1
fi
else
......@@ -1088,8 +1089,9 @@ devel_update() {
# _foo=pkgver
#
if [ "$newpkgver" != "" ]; then
if [ "newpkgver" != "$pkgver" ]; then
if [ "$newpkgver" != "$pkgver" ]; then
sed -i "s/^pkgver=[^ ]*/pkgver=$newpkgver/" ./$BUILDSCRIPT
sed -i "s/^pkgrel=[^ ]*/pkgrel=1/" ./$BUILDSCRIPT
source $BUILDSCRIPT
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment