summaryrefslogtreecommitdiff
path: root/auto/functions/debpool-hook
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2012-10-11 07:59:51 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2012-10-11 08:31:29 +0200
commit48f3cfe728c1ffe44629c792380d4d47466ee38f (patch)
tree537c2506f0b0c2a8006ba8ea983a24338effa335 /auto/functions/debpool-hook
parent797ee5a8cf5bb066143582a7fb042285f2f220e3 (diff)
downloadkanotix-48f3cfe728c1ffe44629c792380d4d47466ee38f.zip
kanotix-48f3cfe728c1ffe44629c792380d4d47466ee38f.tar.gz
compat update for latest live-build version
Diffstat (limited to 'auto/functions/debpool-hook')
-rw-r--r--auto/functions/debpool-hook6
1 files changed, 4 insertions, 2 deletions
diff --git a/auto/functions/debpool-hook b/auto/functions/debpool-hook
index c86a065..e56df34 100644
--- a/auto/functions/debpool-hook
+++ b/auto/functions/debpool-hook
@@ -1,6 +1,8 @@
#!/bin/bash
-if [ "$(basename "$0")" = "lb_chroot_local-hooks" ]; then
+current_script="$(basename "$0"|sed 's/^lb_//')"
+
+if [ "$current_script" = "chroot_local-hooks" ]; then
echo "HOOK: debpool@chroot_local-hooks"
if [ -e config/chroot_debpool ]; then
mkdir -p chroot/live
@@ -8,7 +10,7 @@ if [ "$(basename "$0")" = "lb_chroot_local-hooks" ]; then
fi
fi
-if [ "$(basename "$0")" = "lb_binary_rootfs" ]; then
+if [ "$current_script" = "binary_rootfs" ]; then
echo "HOOK: debpool@binary-rootfs"
for dir in chroot/chroot/live chroot/live
do