From 6204eacd6a5abfbe7a8e63893eef399fedf0ce30 Mon Sep 17 00:00:00 2001 From: Lukas Macura Date: Sun, 11 Dec 2016 14:58:05 +0100 Subject: [PATCH] Repaired dependency checking on older debian systems --- lib/os.lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/os.lib.sh b/lib/os.lib.sh index c1192e3..fe55de1 100644 --- a/lib/os.lib.sh +++ b/lib/os.lib.sh @@ -158,7 +158,7 @@ zaf_install_agent_opkg() { # $* - packages zaf_check_deps_dpkg() { for i in $*; do - dpkg-query -f '${db:Status-Status},${Package}\n' -W $* 2>/dev/null | grep -q "^installed" + dpkg-query -f '${db:Status-Status},${Package}\n' -W $* 2>/dev/null | grep -qE "^(installed|^,)" done }