From 454043122d452e67535a249076fd17c007644b27 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 16 May 2011 15:03:56 +0100 Subject: Allow installing tasks using apt-get, and do so by default for Ubuntu (Closes: #626940). --- scripts/build/lb_chroot_tasks | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'scripts/build/lb_chroot_tasks') diff --git a/scripts/build/lb_chroot_tasks b/scripts/build/lb_chroot_tasks index 72db9f6c0..477d75556 100755 --- a/scripts/build/lb_chroot_tasks +++ b/scripts/build/lb_chroot_tasks @@ -45,6 +45,10 @@ then # Checking depends case "${LB_TASKSEL}" in + apt) + Check_package chroot/usr/bin/apt-get apt + ;; + aptitude) Check_package chroot/usr/bin/aptitude aptitude ;; @@ -59,6 +63,15 @@ then # Installing tasks case "${LB_TASKSEL}" in + apt) + APT_TASKS= + for TASK in ${LB_TASKS} + do + APT_TASKS="${APT_TASKS:+$APT_TASKS }$TASK^" + done + Chroot chroot "apt-get ${APT_OPTIONS} install ${APT_TASKS}" + ;; + aptitude) Chroot chroot "aptitude ${APTITUDE_OPTIONS} install ${LB_TASKS}" ;; -- cgit v1.2.3