summaryrefslogtreecommitdiffstats
path: root/ship/lib
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2013-11-14 12:18:41 +0100
committertv <tv@nomic.retiolum>2013-11-14 12:18:41 +0100
commit5df9f3a8ff52a11445982a215d89672306f0bccb (patch)
treee0745e211b072e4de6a530486b99b4dfa8c2e568 /ship/lib
parent172580f2642426a4ee01ef039d9ba126482bb357 (diff)
ship punani: revert oversimplification slightly
Diffstat (limited to 'ship/lib')
-rw-r--r--ship/lib/punani6
1 files changed, 3 insertions, 3 deletions
diff --git a/ship/lib/punani b/ship/lib/punani
index e07d77af..2c48f883 100644
--- a/ship/lib/punani
+++ b/ship/lib/punani
@@ -6,7 +6,7 @@ _punani_resolve_package(){
eval "echo \"\${_punanidb_${PACKER}_$1}\""
}
-KNOWN_PACKERS='pacman aptget yum brew'
+KNOWN_PACKERS='pacman apt-get yum brew'
_punani_pacman_install(){ pacman --noconfirm -S --needed "$@" ;}
_punani_pacman_remove(){ pacman -Rcs "$@" ;}
_punani_pacman_has(){ pacman -Q "$1" >/dev/null;}
@@ -21,8 +21,8 @@ _punani_brew_remove(){ brew remove "$@";}
_punani_brew_has(){ error "not implemented"; return 1 ;}
punani(){
- for PACKER in ${KNOWN_PACKERS:-null}; do
- exists "$PACKER" && info "using $PACKER" && break
+ for p in ${KNOWN_PACKERS:-null}; do
+ exists $p && info "using $p" && PACKER=`echo $p | tr -d -` && break
done || die 'Error 2: no package manager found; no punani for you!'
ACTION="$1"; shift