From 6edd8363eab02832f8bb58f3405609503b6458af Mon Sep 17 00:00:00 2001 From: =?utf8?q?Guido=20G=C3=BCnther?= Date: Tue, 26 Aug 2014 11:08:27 +0200 Subject: [PATCH] Don't delete *_source.changes on source only builds Closes: #758726 --- bin/git-pbuilder | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/git-pbuilder b/bin/git-pbuilder index 4024d12..37ffe67 100644 --- a/bin/git-pbuilder +++ b/bin/git-pbuilder @@ -265,6 +265,7 @@ fi # them from the shell since they'll undergo another round of shell expansion # when the pbuilder runs debbuild. for arg in "$@" ; do + [ "$arg" != "-S" ] || source_only=true DEBBUILDOPTS+=" $(shell_quote "$arg")" done @@ -278,7 +279,7 @@ else --debbuildopts "$DEBBUILDOPTS" -- "${OPTIONS[@]}" fi status="$?" -if [ -n "`ls ../*_source.changes`" ] ; then +if [ -n "`ls ../*_source.changes`" -a $source_only != 'true' ] ; then rm ../*_source.changes fi exit "$status" -- 2.7.4