aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-01-24 08:29:41 +0100
committerGuido Günther <agx@sigxcpu.org>2017-01-24 08:29:41 +0100
commit390d34aaf771cde8edba4230efc0cd72e8fd82a4 (patch)
treea0c46c215afc150276a26d63bb934e5d0d7a6c94
parent53b5af5898a8be27ec5f03d88e3e6c76232f6292 (diff)
git-pbuilder: print pdebuild command as executed
to ease debugging things like #852264
-rw-r--r--bin/git-pbuilder4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/git-pbuilder b/bin/git-pbuilder
index e67698d..fef4d77 100644
--- a/bin/git-pbuilder
+++ b/bin/git-pbuilder
@@ -327,11 +327,15 @@ done
# Now we can finally run pdebuild. The quoting here is tricky, but this
# seems to pass everything through properly.
if [ no = "$GIT_PBUILDER_AUTOCONF" ] ; then
+ set -x
pdebuild --pbuilder "$BUILDER" --debbuildopts "$DEBBUILDOPTS" \
"${PDEBUILDOPTS[@]}" -- "${OPTIONS[@]}"
+ { set +x; } 2>/dev/null
else
+ set -x
pdebuild --buildresult "$OUTPUT_DIR" --pbuilder "$BUILDER" \
--debbuildopts "$DEBBUILDOPTS" "${PDEBUILDOPTS[@]}" -- "${OPTIONS[@]}"
+ { set +x; } 2>/dev/null
fi
exit "$?"