diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-11-13 11:24:13 +0000 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2015-11-15 10:16:22 +0000 |
commit | fcee0334be27ea4ec4a5fdc3f940e015e60defe9 (patch) | |
tree | a015c6e7e52e38c868a60c1b5397610a0f6e1cbd /pbuilder-runhooks | |
parent | 580b246ae589e4b6011f6149e4680b1fa08497f4 (diff) | |
download | pbuilder-fcee0334be27ea4ec4a5fdc3f940e015e60defe9.tar pbuilder-fcee0334be27ea4ec4a5fdc3f940e015e60defe9.tar.gz |
use log.w() instead of log()
Diffstat (limited to 'pbuilder-runhooks')
-rw-r--r-- | pbuilder-runhooks | 14 |
1 files changed, 7 insertions, 7 deletions
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 ;; |