[pacman-dev] [PATCH] Skip devel_check() when repackaging

Nezmer Nezmer at allurelinux.org
Fri Dec 11 18:25:32 EST 2009


Currently, "makepkg -R" creates a package with a wrong updated $pkgver.

Signed-off-by: Nezmer <Nezmer at allurelinux.org>
---
 scripts/makepkg.sh.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index ceaa8a6..0e18e3f 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1265,7 +1265,7 @@ devel_check() {
 
 	# Do not update pkgver if --holdver is set, when building a source package,
 	# when reading PKGBUILD from pipe (-f), or if we cannot write to the file (-w)
-	if (( HOLDVER || SOURCEONLY )) \
+	if (( HOLDVER || SOURCEONLY || REPKG )) \
 		            || [[ ! -f $BUILDFILE || ! -w $BUILDFILE ]]; then
 		return
 	fi
-- 
1.6.5.5



More information about the pacman-dev mailing list