summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-10-26 08:46:15 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-10-26 08:49:00 +0100
commit64ca2560e87f398d5bfe71c0fb5fc877c85fe050 (patch)
tree6a320c26f0f0a11305ee13199254f7261cb4331b
parentf1cb10360b3c092b160cc75c56ef8228eff165df (diff)
bin/pkg: pkg_info: Check if the package actually exists
-rwxr-xr-xbin/pkg4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/pkg b/bin/pkg
index e58d0f4..9b9937f 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -568,6 +568,10 @@ function pkg_update_local {
function pkg_info {
cd $PDIR
+ if [[ -z $(list_exists $1) ]] {
+ die "No suche package: '$1'\n"
+ }
+
# Fetch the infos
NAME=$1
LOCAL_VERSION=$(list_local_version $1)