From d03b89a4f8bc8cc1acd671f3aac815f7a0ff2389 Mon Sep 17 00:00:00 2001 From: Bruno Tavares Date: Tue, 29 Sep 2015 18:00:45 -0300 Subject: [PATCH] Prevents package query error to show up on logs. As we changed the way we query for installed packages with dpkg, the error that it reports when the package is installed is showing up on the logs. Instead we suppress the error message to prevent the following messages: ``` tools >> No packages found matching git-svn. Installing... tools >> Running "apt-get install -y git-svn" Package `ack-grep' is not installed and no info is available. Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. ``` --- 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 8590085..4a8c848 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() { - dpkg -s "$*" | kickstart.stream.contains "Status: install ok installed" + kickstart.suppress_error dpkg -s "$*" | kickstart.stream.contains "Status: install ok installed" } kickstart.package.installed.brew() {