From 4639b8e84cf47899655bbe9f04279493ed99ee01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Minier?= Date: Sat, 12 Dec 2009 16:06:08 +0100 Subject: 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. --- pbuilder-checkparams | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pbuilder-checkparams') 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; ;; -- cgit v1.2.3