diff options
Diffstat (limited to 'scripts/build/lb_chroot_packagelists')
-rwxr-xr-x | scripts/build/lb_chroot_packagelists | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/build/lb_chroot_packagelists b/scripts/build/lb_chroot_packagelists index 4525465f6..5982ed739 100755 --- a/scripts/build/lb_chroot_packagelists +++ b/scripts/build/lb_chroot_packagelists @@ -41,6 +41,7 @@ Check_lockfile .lock # Creating lock file Create_lockfile .lock +# Handling global package lists if [ -n "${LB_PACKAGE_LISTS}" ] && [ "${LB_PACKAGE_LISTS}" != "none" ] then for LIST in ${LB_PACKAGE_LISTS} @@ -52,3 +53,24 @@ then # Creating stage file Create_stagefile .stage/chroot_packagelists.${_PASS} fi + +# Handling local package lists +if ls config/package-lists/*.list > /dev/null 2>&1 || \ + ls config/package-lists/*.list.chroot > /dev/null 2>&1 || \ + ls config/package-lists/*.list.chroot_${_PASS} > /dev/null 2>&1 +then + for LIST in config/package-lists/*.list \ + config/package-lists/*.list.chroot \ + config/package-lists/*.list.chroot_${_PASS} + do + if [ -e "${LIST}" ] + then + # Generating package list + Expand_packagelist "$(basename ${LIST})" "config/package-lists" \ + >> chroot/root/chroot_packages + fi + done + + # Creating stage file + Create_stagefile .stage/chroot_packagelists.${_PASS} +fi |