Package: live-build
Version: 3.0~a57-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu ubuntu-patch quantal

LB_CHROOT_HOOKS doesn't work, because lb_chroot_hooks looks for the
wrong file names.  Here's a patch.

diff --git a/scripts/build/lb_chroot_hooks b/scripts/build/lb_chroot_hooks
index 0ccfe2b..9d781f4 100755
--- a/scripts/build/lb_chroot_hooks
+++ b/scripts/build/lb_chroot_hooks
@@ -54,7 +54,7 @@ for _HOOK in ${LB_CHROOT_HOOKS}
 do
        for LOCATION in "${LIVE_BUILD}/hooks" /usr/share/live/build/hooks
        do
-               if [ -e "${LOCATION}/hooks/???-${_HOOK}.binary" ]
+               if [ -e "${LOCATION}/hooks/???-${_HOOK}.chroot" ]
                then
                        mkdir -p chroot/root/lb_chroot_hooks
                        cp "${LOCATION}"/hooks/???-"${_HOOK}".chroot 
chroot/root/lb_chroot_hooks

Thanks,

-- 
Colin Watson                                       [[email protected]]


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: 
http://lists.debian.org/[email protected]

Reply via email to