[Pm-utils] [PATCH 5/6] Log skipped hooks in run_hooks.

Victor Lowther victor.lowther at gmail.com
Mon Mar 17 17:35:47 PDT 2008


---
 pm/pm-functions.in |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/pm/pm-functions.in b/pm/pm-functions.in
index 8c080f6..a45967a 100644
--- a/pm/pm-functions.in
+++ b/pm/pm-functions.in
@@ -146,7 +146,8 @@ run_hooks() {
 		do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq) ;
 	do
 		# Skip any hooks we did not run when running going forward. 
-		[ "$3" -a "$LAST_HOOK" -a "$base" > "$LAST_HOOK" ] && continue
+		[ "$3" -a "$LAST_HOOK" -a "$base" > "$LAST_HOOK" ] && {
+			log "Skipping hook "$base"; continue; }
 		if [ -f "$syshooks/$base" ]; then
 			hook="$syshooks/$base"
 		elif [ -f "$phooks/$base" ]; then
-- 
1.5.4.3



More information about the Pm-utils mailing list