Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/makepkg.sh.in
diff options
context:
space:
mode:
authorNezmer <Nezmer@allurelinux.org>2009-12-12 01:25:32 +0200
committerDan McGee <dan@archlinux.org>2009-12-13 23:30:58 -0600
commit9fe27b068ae40a407fd5dd12f974d84499d41ef0 (patch)
tree9b13f7a9751c4ac259100f333d68447da2ebc648 /scripts/makepkg.sh.in
parent05ff276eefc51eeeee58832accd8398eac047037 (diff)
makepkg: skip devel_check() when repackaging
Currently, "makepkg -R" creates a package with a wrong updated $pkgver. Signed-off-by: Nezmer <Nezmer@allurelinux.org> [Allan: adjusted comment] Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r--scripts/makepkg.sh.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index cbb1077f..40283fe2 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1268,9 +1268,9 @@ check_sanity() {
devel_check() {
newpkgver=""
- # 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 )) \
+ # Do not update pkgver if --holdver is set, when building a source package, repackaging,
+ # reading PKGBUILD from pipe (-f), or if we cannot write to the file (-w)
+ if (( HOLDVER || SOURCEONLY || REPKG )) \
|| [[ ! -f $BUILDFILE || ! -w $BUILDFILE ]]; then
return
fi