summaryrefslogtreecommitdiffstats
path: root/ship
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2013-11-14 14:59:22 +0100
committermakefu <root@pigstarter.de>2013-11-14 14:59:22 +0100
commit15030e13242fa464619c63c54294043d69a3ba0f (patch)
tree7e158c03d43c69e57820e85ac6dc0b2ecf029a4c /ship
parentfd3ddc6abe23f83f304c2043fe9cabe1ee8a622c (diff)
add aptget and yum owner functionality
Diffstat (limited to 'ship')
-rw-r--r--ship/lib/punani2
1 files changed, 2 insertions, 0 deletions
diff --git a/ship/lib/punani b/ship/lib/punani
index 33a62444..34307c42 100644
--- a/ship/lib/punani
+++ b/ship/lib/punani
@@ -40,9 +40,11 @@ _punani_pacman_owner() { pacman -Qo "$1"; }
_punani_aptget_install(){ apt-get -y install "$@" ;}
_punani_aptget_remove(){ apt-get -y remove "$@" ;}
_punani_aptget_has() { dpkg -s "$1" | grep -q "Status: install";}
+_punani_aptget_owner() { dpkg-query -S "$1" | cut -d: -f1;}
_punani_yum_install(){ yum -y install "$@" ;}
_punani_yum_remove(){ yum -y remove "$@" ;}
_punani_yum_has() { rpm -qa --qf "%{NAME}\n"| egrep "^${1}\$" >/dev/null ;}
+_punani_yum_owner(){ rpm -qf "$1" ;}
_punani_brew_install(){ brew install "$@"; }
_punani_brew_remove(){ brew remove "$@";}
# TODO _punani_brew_has