Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-03-31 06:16:47 +0200
committerErich Eckner <git@eckner.net>2022-03-31 06:16:47 +0200
commitcbf3422b7547eaddda46e49b3595bbb14347f57d (patch)
tree5869ac193cf8eefe10b8483bff3064769429cc10 /lib
parenta5c01c9104e6566e5546f938a513445b06670963 (diff)
lib/common-functions: remove upstream's sub_pkgrel iff we want to append a sub_pkrel ourself
Diffstat (limited to 'lib')
-rwxr-xr-xlib/common-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common-functions b/lib/common-functions
index 8c263ab..d16c61d 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -447,7 +447,7 @@ mangle_pkgbuild() {
/^arch=[^#]*any/!{
/^arch=(/s/(/(i486 i686 pentium4 /
}
- s/^\(\s*pkgrel=\)['"'"'"]\?\([0-9.]\+\)['"'"'"]\?\s*\(#.*\)\?$/\1"\2'"${sub_pkgrel}"'"/
+ s/^\(\s*pkgrel=\)['"'"'"]\?\([0-9]\+\)\(\.[0-9.]*\)\?['"'"'"]\?\s*\(#.*\)\?$/\1"\2'"${sub_pkgrel:-\\3}"'"/
' "${PKGBUILD}"
# shellcheck disable=SC2016