[pacman-dev] [PATCH 1/1] makepkg: fix updating pkgrel with pkgver in SCM packages

Allan McRae allan at archlinux.org
Mon Feb 23 06:43:28 EST 2009


Commit 1e656c0a introduced the changing of pkgrel to 1 when the
pkgver was updated in SCM PKGBUILDs. However, the output in the
"Making package:" was wrong. Attempting to fix that created
another bug (FS#13416). Interestingly, pkgver was only ever
being updated in the fakeroot stage which caused this problem.
Now both pkgver and pkgrel are updated after the first
devel_check and devel_update. Enjoy the really long explaination
for a two line fix...

Signed-off-by: Allan McRae <allan at archlinux.org>
---
 scripts/makepkg.sh.in |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index e10c345..52e80d1 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1176,8 +1176,6 @@ devel_check() {
 
 		if [ -n "$newpkgver" ]; then
 			msg2 "$(gettext "Version found: %s")" "$newpkgver"
-			pkgver=$newpkgver
-			pkgrel=1
 		fi
 
 	else
-- 
1.6.1.3



More information about the pacman-dev mailing list