From cbf3422b7547eaddda46e49b3595bbb14347f57d Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 31 Mar 2022 06:16:47 +0200 Subject: lib/common-functions: remove upstream's sub_pkgrel iff we want to append a sub_pkrel ourself --- lib/common-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/common-functions') 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 -- cgit v1.2.3-70-g09d2