diff options
author | tv <tv@nomic.retiolum> | 2013-11-14 12:50:50 +0100 |
---|---|---|
committer | tv <tv@nomic.retiolum> | 2013-11-14 12:50:50 +0100 |
commit | 552fad7605bb3befe1928a8f1fdb1a129acd5c4b (patch) | |
tree | 4d25381e6d759683e84a958575d880b3d2d2ce63 /ship/lib | |
parent | c27074f54f30b5d2acc870479ef76d303e46d88e (diff) |
ship punani: simplify _resolve_package caller
Diffstat (limited to 'ship/lib')
-rw-r--r-- | ship/lib/punani | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ship/lib/punani b/ship/lib/punani index e8705c7d..8eef474b 100644 --- a/ship/lib/punani +++ b/ship/lib/punani @@ -34,8 +34,9 @@ punani(){ fi for PKG; do - RES="`_punani_resolve_package $PKG`" - test -z "$RES" && error "could not resolve '$PKG'; no punani for you!"&& return 23 + RES="`_punani_resolve_package $PKG`" || + die "could not resolve '$PKG'; no punani for you!" + case "$ACTION" in install) eval _punani_${PACKER}_has $RES && info "$RES already installed, skipping" && continue |