[pbuilder] 01/01: modules: do not output debug for log()
Mattia Rizzolo
mattia at debian.org
Sun Apr 23 16:39:27 UTC 2017
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch wip/colou_debug
in repository pbuilder.
commit 8a2644d3eef3ea49398cd3a95fe28b3d36152fa1
Author: Mattia Rizzolo <mattia at debian.org>
Date: Sun Apr 23 17:45:06 2017 +0200
modules: do not output debug for log()
it's not useful to debug this function every time it gets called..
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
pbuilder-modules | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pbuilder-modules b/pbuilder-modules
index 00300b8..992db33 100644
--- a/pbuilder-modules
+++ b/pbuilder-modules
@@ -119,6 +119,7 @@ _log() {
set +u
}
function log() {
+ set +x
case "$*" in
"E: "*)
_log 'red' "$*" >&2
@@ -137,6 +138,9 @@ function log() {
exit 1
;;
esac
+ if [ "$PBUILDER_DEBUGMODE" = "yes" ]; then
+ set -x
+ fi
}
log.e() {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pbuilder/pbuilder.git
More information about the Pbuilder-maint
mailing list