1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

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:
Nezmer 2009-12-12 01:25:32 +02:00 committed by Dan McGee
parent 05ff276eef
commit 9fe27b068a

View File

@ -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