summaryrefslogtreecommitdiffstats
path: root/lib/punani
diff options
context:
space:
mode:
Diffstat (limited to 'lib/punani')
-rw-r--r--lib/punani2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/punani b/lib/punani
index d0a16c51..beaee27c 100644
--- a/lib/punani
+++ b/lib/punani
@@ -52,7 +52,7 @@ _punani_resolve_package(){
}
_punani_aptget_install(){ apt-get -y install "$@" ;}
_punani_aptget_remove(){ apt-get -y remove "$@" ;}
-_punani_aptget_has() { dpkg -s "$1" >/dev/null 2>/dev/null ;}
+_punani_aptget_has() { dpkg -s "$1" | grep -q "Status: install";}
_punani_yum_install(){ yum -y install "$@" ;}
_punani_yum_remove(){ yum -y remove "$@" ;}
_punani_yum_has() { rpm -qa --qf "%{NAME}\n"| egrep "^${1}\$" >/dev/null ;}