summaryrefslogtreecommitdiff
path: root/scripts/build/chroot_package-lists
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/chroot_package-lists')
-rwxr-xr-xscripts/build/chroot_package-lists45
1 files changed, 12 insertions, 33 deletions
diff --git a/scripts/build/chroot_package-lists b/scripts/build/chroot_package-lists
index d64fe49e0..26a24061d 100755
--- a/scripts/build/chroot_package-lists
+++ b/scripts/build/chroot_package-lists
@@ -49,26 +49,14 @@ then
exit 0
fi
-case "${LB_BUILD_WITH_CHROOT}" in
- true)
- # Checking depends
- Check_package chroot /usr/bin/grep-aptavail dctrl-tools
-
- # Restoring cache
- Restore_cache cache/packages.chroot
-
- # Installing depends
- Install_package
- ;;
-
- false)
- if [ ! -e /usr/bin/grep-aptavail ]; then
- # dctrl-tools
- Echo_error "/usr/bin/grep-aptavail - no such file."
- exit 1
- fi
- ;;
-esac
+# Checking depends
+Check_package chroot /usr/bin/grep-aptavail dctrl-tools
+
+# Restoring cache
+Restore_cache cache/packages.chroot
+
+# Installing depends
+Install_package
if [ -e "${LIVE_BUILD}/share/bin/Packages" ]
then
@@ -102,19 +90,10 @@ done
rm -f chroot/bin/Packages
-case "${LB_BUILD_WITH_CHROOT}" in
- true)
- # Removing dctrl-tools again if the user has not installed it
- if ! grep -qs dctrl-tools chroot/root/packages.chroot
- then
- # Removing depends
- Remove_package
- fi
-
- # Saving cache
- Save_cache cache/packages.chroot
- ;;
-esac
+Remove_package
+
+# Saving cache
+Save_cache cache/packages.chroot
# Creating stage file
Create_stagefile .build/chroot_package-lists.${_PASS}