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
This commit is contained in:
Luca Boccassi 2018-04-04 20:26:39 +01:00
parent 050e637b2c
commit 08dd0b90db
1 changed files with 1 additions and 1 deletions

View File

@ -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