Fix Check_installed function when checking against host

Thanks to jnqnfe for the report.

Closes: #774807
This commit is contained in:
Raphaël Hertzog 2016-11-28 22:50:42 +01:00
parent 5a169a6fe6
commit 02d933fc17
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View File

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

View File

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