aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--bin/git-pbuilder3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/git-pbuilder b/bin/git-pbuilder
index 4024d124..37ffe67b 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"