From 02d933fc17c6355a180f8af5ab98365d173215d5 Mon Sep 17 00:00:00 2001 From: Raphaƫl Hertzog Date: Mon, 28 Nov 2016 22:50:42 +0100 Subject: Fix Check_installed function when checking against host Thanks to jnqnfe for the report. Closes: #774807 --- debian/changelog | 2 ++ functions/packages.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 1dbda316b..30599a09a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -34,6 +34,8 @@ live-build (1:20160105) UNRELEASED; urgency=medium * Drop an optimization in chroot_archives that has undesired side-effects. Thanks to jnqnfe for the patch. Closes: #775989 * Drop gpgv and debian-keyring from Suggests. + * Fix Check_installed function when checking against host. Thanks to jnqnfe + for the report. Closes: #774807 [ Kristian Klausen ] * Include ext{3,4} journal size when calculating image size. Closes: #801712 diff --git a/functions/packages.sh b/functions/packages.sh index 477d3379a..c2f7cfabf 100755 --- a/functions/packages.sh +++ b/functions/packages.sh @@ -82,7 +82,7 @@ Check_installed () else if which dpkg-query > /dev/null 2>&1 then - if Chroot chroot "dpkg-query -s ${PACKAGE}" 2> /dev/null | grep -qs "Status: install" + if dpkg-query -s "${PACKAGE}" 2> /dev/null | grep -qs "Status: install" then INSTALL_STATUS=0 else -- cgit v1.2.3