From fcee0334be27ea4ec4a5fdc3f940e015e60defe9 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 13 Nov 2015 11:24:13 +0000 Subject: use log.w() instead of log() --- pbuilder-runhooks | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'pbuilder-runhooks') diff --git a/pbuilder-runhooks b/pbuilder-runhooks index 6e912b0..8e96e95 100644 --- a/pbuilder-runhooks +++ b/pbuilder-runhooks @@ -38,10 +38,10 @@ function loadhooks () { if [ -d "$HOOKDIR" ]; then mkdir -p "$BUILDPLACE/$hooks" if ! cp -aL "$HOOKDIR/"* "$BUILDPLACE/$hooks"; then - log "W: no hooks found in the hookdir '$HOOKDIR'" + log.w "no hooks found in the hookdir '$HOOKDIR'" fi else - log "W: hookdir $HOOKDIR does not exist, skipping" + log.w "hookdir $HOOKDIR does not exist, skipping" fi } @@ -75,13 +75,13 @@ function executehooks () { for fn in "$BUILDPLACE/$hooks/$prefix"[0-9][0-9]* ; do case "$fn" in "$BUILDPLACE/$hooks/$prefix"'[0-9][0-9]*') - log "W: no hooks of type ${prefix} found -- ignoring" + log.w "no hooks of type ${prefix} found -- ignoring" ;; *~) - log "W: skipping an editor backup file $fn" + log.w "skipping an editor backup file $fn" ;; *.bak) - log "W: skipping a backup file $fn" + log.w "skipping a backup file $fn" ;; *) if [ -x "$fn" ]; then @@ -92,10 +92,10 @@ function executehooks () { else if [ -f "$fn" ]; then filetype=$(basename "$fn" ) - log "W: execute priv not set on file $filetype, not executing." + log.w "execute priv not set on file $filetype, not executing." else # Should it reach here ? This case should be caught in the above case. - log "W: no hooks of type ${prefix} found -- internal error in logic" + log.w "no hooks of type ${prefix} found -- internal error in logic" fi fi ;; -- cgit v1.2.3