From 1777fdaa90bc28b75a3685fd7de789e2dec97b87 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Wed, 25 Nov 2015 23:16:36 +0000 Subject: pdebuild-internal: revert back to plain log() instead of log.{i,e}() This makes possible to use a new pbuilder outside the choot and a old pbuilder inside. We can't just source the modules and use log.{i,w,e} since we don't know if the pbuilder version inside the chroot is new enough. Gbp-Dch: Short --- pdebuild-internal | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pdebuild-internal b/pdebuild-internal index 562be0d..b737216 100644 --- a/pdebuild-internal +++ b/pdebuild-internal @@ -39,6 +39,9 @@ cd "$1" shift; # dummy function that does enough, real one is defined elsewhere. +# We don't deal with LOGLEVEL here, though. +# We can't just source the modules and use log.{i,w,e} since we don't know if +# the pbuilder version inside the chroot is new enough. function log() { echo "$*" } @@ -48,7 +51,7 @@ while [ -n "$1" ]; do --debbuildopts) # append to DEBBUILDOPTS or reset to empty if $2 isn't set DEBBUILDOPTS="${2:+${DEBBUILDOPTS:+$DEBBUILDOPTS }$2}"; - log.i "Setting DEBBUILDOPTS=$DEBBUILDOPTS" + log "I: Setting DEBBUILDOPTS=$DEBBUILDOPTS" shift; shift; ;; --uid) @@ -69,7 +72,7 @@ while [ -n "$1" ]; do shift; ;; --*) - log.e "Unknown option [$1] was specified " + log "E: Unknown option [$1] was specified " exit 1; ;; *) -- cgit v1.2.3