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>2019-12-11 11:03:59 +0100
committerErich Eckner <git@eckner.net>2019-12-11 11:03:59 +0100
commit83e8727103fec492e495513c75c512eed674fb3f (patch)
tree609736ced837286ddb51931006060082bd6f8b2a /lib
parent8d0c620276edba88247655b0bb3d33686c2fd35a (diff)
lib/common-functions: mangle_pkgbuild(): do not mangle *depends, when regex does not match until end of file (it's a failsafe)
Diffstat (limited to 'lib')
-rwxr-xr-xlib/common-functions8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/common-functions b/lib/common-functions
index a1e019f..f5e1f74 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -452,14 +452,14 @@ mangle_pkgbuild() {
s/^\(\s*pkgrel=\)['"'"'"]\?\([0-9.]\+\)['"'"'"]\?\s*\(#.*\)\?$/\1"\2'"${sub_pkgrel}"'"/
' "${PKGBUILD}"
+ # shellcheck disable=SC2016
sed -i '
/^\s*\(make\|check\|opt\|\)depends\(_[^=[:space:]]\+\)\?=(/ {
:a
/^\s*\(\S[^=]*\)=(\([^()]*\(#[^\n]*\n\)\?\)*)/! {
- $! {
- N
- ba
- }
+ $b
+ N
+ ba
}
:b
s/\(=.*["'"'"'([:space:]]\)lib32-/\1/g