Handle package-lists parameter for lb_config in live-build-cron-images script for both lb version 2.x and 3.x.

This commit is contained in:
Daniel Baumann 2011-07-29 11:30:53 +02:00
parent b181612222
commit cba1c05b33
1 changed files with 13 additions and 1 deletions

View File

@ -167,6 +167,18 @@ Build ()
rm -rf cache/stages_rootfs
rm -f config/* || true
LB_VERSION="$(lb --version | awk '/^live-build, version / { print $3 }')"
case "${LB_VERSION}" in
2.0*)
_PACKAGE_LISTS="--packages-lists ${FLAVOUR}"
;;
3.0*)
_PACKAGE_LISTS="--package-lists ${FLAVOUR}"
;;
esac
# FIXME: cdebootstrap
lb config --clean \
--bootstrap cdebootstrap \
@ -177,7 +189,7 @@ Build ()
--mirror-bootstrap ${MIRROR_BOOTSTRAP} \
--mirror-chroot ${MIRROR_CHROOT} \
--mirror-chroot-security ${MIRROR_CHROOT_SECURITY} \
--packages-lists ${FLAVOUR}
${_PACKAGE_LISTS}
lb build 2>&1 | tee debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.iso.log