[pbuilder] 01/01: modules: do not output debug for log(), I know how that function works…

Mattia Rizzolo mattia at debian.org
Sun Apr 23 16:11:19 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 7a2d9a6d5ce02c9408ba882e80789ad78cf9a5a2
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Sun Apr 23 17:45:06 2017 +0200

    modules: do not output debug for log(), I know how that function works…
    
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
 pbuilder-modules | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pbuilder-modules b/pbuilder-modules
index 00300b8..30dffca 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,7 @@ function log() {
             exit 1
             ;;
     esac
+    [[ "$PBUILDER_DEBUGMODE" = "yes" ]] && set -x
 }
 
 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