diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-11-10 10:26:54 +0000 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2015-11-10 14:24:41 +0000 |
commit | 9e48b68a70e470e2a087c55e5c5d31cf0c8918f9 (patch) | |
tree | dd765b4cb9ce2857c78bf1868f80012c8811d97e /pdebuild | |
parent | 211eabcc0b69839306735249d2ddadd03ca3e930 (diff) | |
download | pbuilder-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-- | pdebuild | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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} \ |