aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-runhooks
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-runhooks')
-rw-r--r--pbuilder-runhooks14
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
;;