mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 08:18:51 -05:00
makepkg: do not update pkgver when building source package
When making a source package for a SCM PKGBUILD, makepkg should not update the pkgver/pkgrel. Noted in FS#14456. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
20017354f7
commit
de44a0f474
@ -1100,14 +1100,13 @@ install_package() {
|
|||||||
|
|
||||||
devel_check() {
|
devel_check() {
|
||||||
newpkgver=""
|
newpkgver=""
|
||||||
# Only update pkgver if --holdver is not set
|
|
||||||
if [ "$HOLDVER" -eq 1 ]; then
|
# Do not update pkgver if --holdver is set, when building a source package,
|
||||||
return
|
# or when reading PKGBUILD from pipe
|
||||||
fi
|
if [ "$HOLDVER" -eq 1 -o "$SOURCEONLY" -ne 0 -o ! -f "./$BUILDSCRIPT" ]; then
|
||||||
# Cannot update pkgver/pkgrel if reading PKGBUILD from pipe
|
|
||||||
if [ ! -f "./$BUILDSCRIPT" ]; then
|
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$FORCE_VER" ]; then
|
if [ -z "$FORCE_VER" ]; then
|
||||||
# Check if this is a svn/cvs/etc PKGBUILD; set $newpkgver if so.
|
# Check if this is a svn/cvs/etc PKGBUILD; set $newpkgver if so.
|
||||||
# This will only be used on the first call to makepkg; subsequent
|
# This will only be used on the first call to makepkg; subsequent
|
||||||
|
Loading…
Reference in New Issue
Block a user