Commit 23099946 authored by Daniel Baumann's avatar Daniel Baumann
Browse files

Correcting dependency checks in binary_package-lists (Closes: #774336).

parent 90024a03
......@@ -53,13 +53,15 @@ esac
if ls config/package-lists/*.list > /dev/null 2>&1 || \
ls config/package-lists/*.list.binary > /dev/null 2>&1
then
# Check depends
Check_package host /usr/bin/apt-ftparchive apt-utils
case "${LB_BUILD_WITH_CHROOT}" in
true)
# Restoring cache
Restore_cache cache/packages.chroot
# Check depends
Check_package chroot /usr/bin/apt-ftparchive apt-utils
Check_package chroot /usr/bin/grep-aptavail dctrl-tools
# Installing depends
......@@ -67,17 +69,7 @@ then
;;
false)
if [ ! -e /usr/bin/apt-ftparchive ]; then
# apt-utils
Echo_error "/usr/bin/apt-ftparchive - no such file."
exit 1
fi
if [ ! -e /usr/bin/grep-aptavail ]; then
# dctrl-tools
Echo_error "/usr/bin/grep-aptavail - no such file."
exit 1
fi
Check_package host /usr/bin/grep-aptavail dctrl-tools
;;
esac
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment