3
# lh_chroot_local-packageslists(1) - queue install of local packages lists into chroot
4
# Copyright (C) 2006-2010 Daniel Baumann <daniel@debian.org>
6
# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
7
# This is free software, and you are welcome to redistribute it
8
# under certain conditions; see COPYING for details.
12
# Including common functions
13
. "${LH_BASE:-/usr/share/live-helper}"/scripts/build.sh
15
# Setting static variables
16
DESCRIPTION="$(Echo 'queue install of local packages lists into chroot')"
18
USAGE="${PROGRAM} [--force]"
22
# Reading configuration files
23
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
26
Echo_message "Begin queueing installation of local packages lists..."
28
# Requiring stage file
29
Require_stagefile .stage/config .stage/bootstrap
32
Check_stagefile .stage/chroot_local-packageslists
40
if ls config/chroot_local-packageslists/*.list > /dev/null 2>&1
42
for LIST in config/chroot_local-packageslists/*.list
44
# Generating local package list
45
Expand_packagelist "$(basename ${LIST})" "config/chroot_local-packageslists" \
46
>> chroot/root/chroot_packages
50
Create_stagefile .stage/chroot_local-packageslists