aboutsummaryrefslogtreecommitdiff
path: root/pdebuild
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-11-10 10:26:54 +0000
committerMattia Rizzolo <mattia@mapreri.org>2015-11-10 14:24:41 +0000
commit9e48b68a70e470e2a087c55e5c5d31cf0c8918f9 (patch)
treedd765b4cb9ce2857c78bf1868f80012c8811d97e /pdebuild
parent211eabcc0b69839306735249d2ddadd03ca3e930 (diff)
downloadpbuilder-9e48b68a70e470e2a087c55e5c5d31cf0c8918f9.tar
pbuilder-9e48b68a70e470e2a087c55e5c5d31cf0c8918f9.tar.gz
pdebuild: hack dpkg-buildpackage invocation to remove the -g/-G/-b/etc flags also when they are surrounded by quotes
Thanks: Tomasz Buchert for the regex
Diffstat (limited to 'pdebuild')
-rw-r--r--pdebuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdebuild b/pdebuild
index 1264bff..8a28aba 100644
--- a/pdebuild
+++ b/pdebuild
@@ -76,7 +76,7 @@ else
log "W: Unmet build-dependency in source"
fi
echo "dpkg-buildpackage -S -d -us -uc -r${BUILDSOURCEROOTCMD} $DEBBUILDOPTS" | \
- perl -pe 's/(^|\s)-[AbBFgG](\s|$)/$1$2/g' | \
+ perl -pe 's/(^|\s)['\'']?-[AbBFgG]['\'']?(\s|$)/$1$2/g' | \
/bin/bash
${PBUILDERROOTCMD} \
${PDEBUILD_PBUILDER} \