From 64ca2560e87f398d5bfe71c0fb5fc877c85fe050 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 26 Oct 2008 08:46:15 +0100 Subject: bin/pkg: pkg_info: Check if the package actually exists --- bin/pkg | 4 ++++ 1 file changed, 4 insertions(+) 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) -- cgit v1.2.3