From 25f7152e5eeb6be395790aa433dd350ab2766b97 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 11 Jun 2011 10:59:53 +0200 Subject: Don't try to install standard task on anything but ubuntu. --- scripts/build/lb_chroot_tasks | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/build/lb_chroot_tasks b/scripts/build/lb_chroot_tasks index 477d75556..96d02d2cc 100755 --- a/scripts/build/lb_chroot_tasks +++ b/scripts/build/lb_chroot_tasks @@ -64,11 +64,25 @@ then # Installing tasks case "${LB_TASKSEL}" in apt) + # This needs to be cleaned up at some point APT_TASKS= - for TASK in ${LB_TASKS} + + case "${LB_MODE}" in + ubuntu) + TASKS="${LB_TASKS}" + ;; + + *) + # Avoid standard tasks which appears to not exist + TASKS="$(echo ${LB_TASKS} | sed -e 's|standard||')" + ;; + esac + + for TASK in ${TASKS} do APT_TASKS="${APT_TASKS:+$APT_TASKS }$TASK^" done + Chroot chroot "apt-get ${APT_OPTIONS} install ${APT_TASKS}" ;; -- cgit v1.2.3