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:11:34 +0100
committerErich Eckner <git@eckner.net>2019-12-11 11:11:34 +0100
commitfa09adbf5370fada0cf8c4a70f40c9dd79e63858 (patch)
treec2ed7dfb82bb050e6854515b52676abeb8d4f6ed /lib
parent7322f16a1c30d9f91e4e0bdae20268986f5c2916 (diff)
lib/common-functions: mangle_pkgbuild(): corectly parse *depends with ' and "s
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 997d322..6f175af 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -456,7 +456,7 @@ mangle_pkgbuild() {
sed -i '
/^\s*\(make\|check\|opt\|\)depends\(_[^=[:space:]]\+\)\?=(/ {
:a
- /^\s*\(\S[^=]*\)=(\([^()]*\(#[^\n]*\n\)\?\)*)/! {
+ /^\s*\(\S[^=]*\)=(\(\([^()"'"'"']\|"[^"]*"\|['"'"'][^'"'"']*['"'"']\s*\)*\(#[^\n]*\n\)\?\)*)/! {
$b
N
ba