summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorRaphaël Hertzog <hertzog@debian.org>2016-11-28 22:50:42 +0100
committerRaphaël Hertzog <hertzog@debian.org>2016-11-28 22:50:46 +0100
commit02d933fc17c6355a180f8af5ab98365d173215d5 (patch)
treefe245a27e0deab36d35c0afdde077cab65a70cab /functions
parent5a169a6fe6c0915eea729739e513e4265e2d4e6f (diff)
downloadvyos-live-build-02d933fc17c6355a180f8af5ab98365d173215d5.tar.gz
vyos-live-build-02d933fc17c6355a180f8af5ab98365d173215d5.zip
Fix Check_installed function when checking against host
Thanks to jnqnfe for the report. Closes: #774807
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/packages.sh2
1 files changed, 1 insertions, 1 deletions
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