summaryrefslogtreecommitdiffstats
path: root/ship/lib/punani
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2013-11-14 10:53:03 +0100
committertv <tv@nomic.retiolum>2013-11-14 10:53:03 +0100
commitad6a4e849d071cff0a230e5510be5b6e5702451f (patch)
tree7c971f05fa37e572fb05c46fe62a5ded8a037bbd /ship/lib/punani
parent168f5927f4a7b69b23f7d90e5a2dd36c6fe78a01 (diff)
ship: simplify _punani_resolve_package
Diffstat (limited to 'ship/lib/punani')
-rw-r--r--ship/lib/punani4
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 "$@" ;}