summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-11-28 14:22:48 +0100
committerErich Eckner <git@eckner.net>2019-11-28 14:22:48 +0100
commit6dc9a716c182892ac2129b9905da5ec6503a79b4 (patch)
treebaa12c755c1bf7c9866cce1c8b72439512d11a39
parent816ee0c04adc99cfba6f3fd7d2ef380a7caafe4d (diff)
downloadbuilder-6dc9a716c182892ac2129b9905da5ec6503a79b4.tar.xz
lib/common-functions: mangle_pkgbuild(): do *not* match on "=" from declaration
-rwxr-xr-xlib/common-functions8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/common-functions b/lib/common-functions
index 48ba931..ae42a03 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -461,9 +461,11 @@ mangle_pkgbuild() {
ba
}
}
- s/\(["'"'"'([:space:]]\)lib32-/\1/g
- s/\(["'"'"'([:space:]]\)gcc-multilib\(["'"'"')[:space:]]\)/\1gcc\2/g
- s/\(["'"'"'([:space:]]\S\+[<=>]\S\+\)-[^:"'"'"')[:space:]]\+\([:"'"'"')[:space:]]\)/\1\2/g
+ :b
+ s/\(=.*["'"'"'([:space:]]\)lib32-/\1/g
+ s/\(=.*["'"'"'([:space:]]\)gcc-multilib\(["'"'"')[:space:]]\)/\1gcc\2/g
+ s/\(=.*["'"'"'([:space:]]\S\+[<=>]\S\+\)-[^:"'"'"')[:space:]]\+\([:"'"'"')[:space:]]\)/\1\2/g
+ tb
}
' "${PKGBUILD}"
}