diff options
author | tv <tv@nomic.retiolum> | 2013-11-14 10:53:03 +0100 |
---|---|---|
committer | tv <tv@nomic.retiolum> | 2013-11-14 10:53:03 +0100 |
commit | ad6a4e849d071cff0a230e5510be5b6e5702451f (patch) | |
tree | 7c971f05fa37e572fb05c46fe62a5ded8a037bbd /ship/lib/punani | |
parent | 168f5927f4a7b69b23f7d90e5a2dd36c6fe78a01 (diff) |
ship: simplify _punani_resolve_package
Diffstat (limited to 'ship/lib/punani')
-rw-r--r-- | ship/lib/punani | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ship/lib/punani b/ship/lib/punani index 84881dbf..ca2e3534 100644 --- a/ship/lib/punani +++ b/ship/lib/punani @@ -1,9 +1,9 @@ #@include core #@include _punani_db +## usage: _punani_resolve_package PKGNAME _punani_resolve_package(){ - pkg=${1?please provide package name to resolve} - eval printf "%s" \"\${_punanidb_${PACKER}_${pkg}-}\" | grep . + eval "echo \"\${_punanidb_${PACKER}_$1}\"" } _punani_aptget_install(){ apt-get -y install "$@" ;} _punani_aptget_remove(){ apt-get -y remove "$@" ;} |