From fa09adbf5370fada0cf8c4a70f40c9dd79e63858 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 11 Dec 2019 11:11:34 +0100 Subject: lib/common-functions: mangle_pkgbuild(): corectly parse *depends with ' and "s --- lib/common-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3