aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-01-18 07:51:39 +0100
committerGuido Günther <agx@sigxcpu.org>2017-01-18 07:51:39 +0100
commit0a34605b7b14b8b0484906f055e271625884ca64 (patch)
tree2debeb7f04d79fc7936b3e8d9075c4393dc9e112
parent4e0139413360890cfdad8627d089b08de7936f51 (diff)
git-pbuilder: Don't remove changes file
Closes: #85047
-rw-r--r--bin/git-pbuilder10
1 files changed, 1 insertions, 9 deletions
diff --git a/bin/git-pbuilder b/bin/git-pbuilder
index aa15cf5e..e67698de 100644
--- a/bin/git-pbuilder
+++ b/bin/git-pbuilder
@@ -320,11 +320,7 @@ fi
# Add all of the additional arguments we got on the command line, but quote
# them from the shell since they'll undergo another round of shell expansion
# when the pbuilder runs debbuild.
-source_only=false
for arg in "$@" ; do
- if [ x'-S' = x"$arg" ] ; then
- source_only=true
- fi
DEBBUILDOPTS+=" $(shell_quote "$arg")"
done
@@ -337,11 +333,7 @@ else
pdebuild --buildresult "$OUTPUT_DIR" --pbuilder "$BUILDER" \
--debbuildopts "$DEBBUILDOPTS" "${PDEBUILDOPTS[@]}" -- "${OPTIONS[@]}"
fi
-status="$?"
-if [ -n "`ls ../*_source.changes`" ] && [ true != "$source_only" ] ; then
- rm ../*_source.changes
-fi
-exit "$status"
+exit "$?"
# Documentation. Use a hack to hide this from the shell. Because of the
# above exit line, this should never be executed.