summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-12 17:10:29 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-12 17:10:29 +0100
commitd2141a12e910e1ce2527b6e41e8b24dd061a74e6 (patch)
tree7758d8d8597d81f293bece085a47bb576cb34be3 /bin
parent69c7016abf62de9ac89d589cc53c7c0c24cf5650 (diff)
pkg: global post-update hook: Fixed parameters for checklinks
(Did I already mention that the zsh patterns/expansion are extremely weird and not entirely behaving as documented?)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/pkg b/bin/pkg
index 6c2df3c..fdfd524 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -367,11 +367,9 @@ function global_hook {
info "Running make\n"
make
}
- # TODO: cover cases where $HOME ends in a /
- # (just to be on the safe side)
checklinks $CL_OPTIONS \
- --parameter package=${PWD#$HOME/} \
- --parameter etc=${PWD#$HOME/}/etc
+ --parameter package=${${PWD#$HOME}#/##} \
+ --parameter etc=${${PWD#$HOME}#/##}/etc
populate_collected $1
update_provides $1
list_update_package $1