summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-01-23 17:59:10 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-01-23 17:59:10 +0100
commit7e3ebdeb7cd68c6222fbcb40463b40c270a16eab (patch)
tree93b47171af864b915fd8e88e4a9787aa188b6a41 /bin/pkg
parent9047fffb9f43980bb8c5e365f8ae438209fba3e7 (diff)
Added support for global hooks via .pkg.conf
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/pkg b/bin/pkg
index ca09a53..91bcab6 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -378,6 +378,7 @@ function global_hook {
update_provides $1 'remove'
;;
esac
+ (( $+functions[pkg_hook_$2] )) && pkg_hook_$2 $1
}
# Set the correct origin