From 9e48b68a70e470e2a087c55e5c5d31cf0c8918f9 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Tue, 10 Nov 2015 10:26:54 +0000 Subject: 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 --- pdebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} \ -- cgit v1.2.3