diff options
author | Erich Eckner <git@eckner.net> | 2019-12-11 11:11:34 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-12-11 11:11:34 +0100 |
commit | fa09adbf5370fada0cf8c4a70f40c9dd79e63858 (patch) | |
tree | c2ed7dfb82bb050e6854515b52676abeb8d4f6ed /lib/common-functions | |
parent | 7322f16a1c30d9f91e4e0bdae20268986f5c2916 (diff) | |
download | builder-fa09adbf5370fada0cf8c4a70f40c9dd79e63858.tar.xz |
lib/common-functions: mangle_pkgbuild(): corectly parse *depends with ' and "s
Diffstat (limited to 'lib/common-functions')
-rwxr-xr-x | lib/common-functions | 2 |
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 |