summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2013-11-02 02:43:11 +0100
committermakefu <root@pigstarter.de>2013-11-02 02:43:11 +0100
commit3060d3c4ce12fae2e8b754f13d0e227af2134ab5 (patch)
tree962237107570fbac43dc2c9ece5cda483cf47daf /lib
parenta1fc5b132349946dc9dc536de7a2f2812e407105 (diff)
add deploy script
we are running hill billy style dependency resolution by cat-ing every lib into the resulting binary
Diffstat (limited to 'lib')
-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 ;}