From 08dd0b90dbe87411fb0657c940926c85730ac3e7 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Wed, 4 Apr 2018 20:26:39 +0100 Subject: [PATCH] Print an error and exit if a host package (dependency) is missing. Check_package will just add a missing dependency to the LB_PACKAGES todo list if it doesn't find it, when build-with-chroot is true, even if the check was not for the chroot. Instead error out if the check is not done for the chroot, e.g. Check_package host /bin/foo foo --- functions/packages.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/packages.sh b/functions/packages.sh index 7c3592dac..a119e823d 100755 --- a/functions/packages.sh +++ b/functions/packages.sh @@ -18,7 +18,7 @@ Check_package () if [ "${INSTALL_STATUS}" -ne 0 ] then - if [ "${LB_BUILD_WITH_CHROOT}" != "false" ] + if [ "${LB_BUILD_WITH_CHROOT}" != "false" ] && [ "${CHROOT}" = "chroot" ] then _LB_PACKAGES="${_LB_PACKAGES} ${PACKAGE}" else