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>
This commit is contained in:
parent
05ff276eef
commit
9fe27b068a
1 changed files with 3 additions and 3 deletions
|
@ -1268,9 +1268,9 @@ check_sanity() {
|
||||||
devel_check() {
|
devel_check() {
|
||||||
newpkgver=""
|
newpkgver=""
|
||||||
|
|
||||||
# Do not update pkgver if --holdver is set, when building a source package,
|
# Do not update pkgver if --holdver is set, when building a source package, repackaging,
|
||||||
# when reading PKGBUILD from pipe (-f), or if we cannot write to the file (-w)
|
# 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
|
|| [[ ! -f $BUILDFILE || ! -w $BUILDFILE ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue