From bbf39bd59f31084d499c2cdd064274093b39dad8 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 9 Apr 2010 23:56:28 +0200 Subject: added dependency based system to run defined tasks --- inc/chroot-functions.inc.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'inc/chroot-functions.inc.sh') diff --git a/inc/chroot-functions.inc.sh b/inc/chroot-functions.inc.sh index b07f3ea..5693a54 100644 --- a/inc/chroot-functions.inc.sh +++ b/inc/chroot-functions.inc.sh @@ -1,13 +1,13 @@ chroot-exec () { - if [ $(mount |grep -c $buildrootpath/dev) -eq 0 ]; then + if [ $(mount |grep -c $BROOT_BUILDROOT_PATH/dev) -eq 0 ]; then setupBindmounts fi - chroot $buildrootpath linux32 $@ + chroot $BROOT_BUILDROOT_PATH linux32 $@ } chroot-aptinstall () { - if [ $(mount |grep -c $buildrootpath/dev) -eq 0 ]; then + if [ $(mount |grep -c $BROOT_BUILDROOT_PATH/dev) -eq 0 ]; then setupBindmounts fi - chroot $buildrootpath linux32 aptitude install -y $@ + chroot $BROOT_BUILDROOT_PATH linux32 aptitude install -y $@ } -- cgit v1.2.3-55-g7522