aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-checkparams
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2009-12-12 16:06:08 +0100
committerLoïc Minier <lool@dooz.org>2009-12-12 16:06:08 +0100
commit4639b8e84cf47899655bbe9f04279493ed99ee01 (patch)
tree33172b1b9399c6b3ae1b67c14d2b67a070eaa423 /pbuilder-checkparams
parent070f8c798b9b2d98ef98a8407b8812ce9ab745ad (diff)
downloadpbuilder-4639b8e84cf47899655bbe9f04279493ed99ee01.tar
pbuilder-4639b8e84cf47899655bbe9f04279493ed99ee01.tar.gz
Make --debbuildopts additive
Change --debbuildopts to be additive and reset the list of options to the empty list if --debbuildopts "" is passed. Update docs and add NEWS entry.
Diffstat (limited to 'pbuilder-checkparams')
-rwxr-xr-xpbuilder-checkparams4
1 files changed, 3 insertions, 1 deletions
diff --git a/pbuilder-checkparams b/pbuilder-checkparams
index ef81878..f8f02e8 100755
--- a/pbuilder-checkparams
+++ b/pbuilder-checkparams
@@ -142,7 +142,8 @@ while [ -n "$1" ]; do
shift; shift;
;;
--debbuildopts)
- DEBBUILDOPTS="$2";
+ # append to DEBBUILDOPTS or reset to empty if $2 isn't set
+ DEBBUILDOPTS="${2:+$DEBBUILDOPTS $2}";
shift; shift;
;;
--logfile)
@@ -173,6 +174,7 @@ while [ -n "$1" ]; do
;;
--binary-arch)
BINARY_ARCH="yes"
+ # XXX this might be overwriten by --debbuildopts ""
DEBBUILDOPTS="${DEBBUILDOPTS} -B"
shift;
;;