mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 00:08: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:
parent
05ff276eef
commit
9fe27b068a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user