From a0bb7e160d8650eb3308389c2386fe8d321658e8 Mon Sep 17 00:00:00 2001 From: Bruno Tavares Date: Sun, 27 Sep 2015 13:31:03 -0300 Subject: [PATCH] Improves installed package detection on debian-based Instead of relying only on the exit code of dpkg query, we check that the status is installed for sure. This prevents situations where the package was not properly installed, and has a status like "install ok not-installed". --- kickstart/recipes/kickstart/package/installed.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kickstart/recipes/kickstart/package/installed.sh b/kickstart/recipes/kickstart/package/installed.sh index 424de96..8590085 100644 --- a/kickstart/recipes/kickstart/package/installed.sh +++ b/kickstart/recipes/kickstart/package/installed.sh @@ -3,7 +3,7 @@ kickstart.package.installed() { } kickstart.package.installed.apt-get() { - kickstart.mute dpkg -s "$*" + dpkg -s "$*" | kickstart.stream.contains "Status: install ok installed" } kickstart.package.installed.brew() {