From 4639b8e84cf47899655bbe9f04279493ed99ee01 Mon Sep 17 00:00:00 2001 From: Loïc Minier 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. --- pdebuild-internal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pdebuild-internal') diff --git a/pdebuild-internal b/pdebuild-internal index 5b77a32..9c41931 100644 --- a/pdebuild-internal +++ b/pdebuild-internal @@ -46,8 +46,8 @@ function log() { while [ -n "$1" ]; do case "$1" in --debbuildopts) - log "I: Setting DEBBUILDOPTS=$2" - DEBBUILDOPTS="$2" + DEBBUILDOPTS="${2:+$DEBBUILDOPTS $2}"; + log "I: Setting DEBBUILDOPTS=$DEBBUILDOPTS" shift; shift; ;; --uid) -- cgit v1.2.3