From d703d361fc6b707934ac521516999d31c92e6bc7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 Dec 2010 14:06:12 +0100 Subject: Passing chroot directory explicitly to Apt() in preparation for multi-arch. --- functions/wrapper.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'functions') diff --git a/functions/wrapper.sh b/functions/wrapper.sh index 3b8a67232..ab14a485e 100755 --- a/functions/wrapper.sh +++ b/functions/wrapper.sh @@ -10,13 +10,16 @@ Apt () { + CHROOT="${1}" + shift + case "${LB_APT}" in apt|apt-get) - Chroot chroot apt-get ${APT_OPTIONS} ${@} + Chroot ${CHROOT} apt-get ${APT_OPTIONS} ${@} ;; aptitude) - Chroot chroot aptitude ${APTITUDE_OPTIONS} ${@} + Chroot ${CHROOT} aptitude ${APTITUDE_OPTIONS} ${@} ;; esac } -- cgit v1.2.3