diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-26 08:46:15 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-26 08:49:00 +0100 |
commit | 64ca2560e87f398d5bfe71c0fb5fc877c85fe050 (patch) | |
tree | 6a320c26f0f0a11305ee13199254f7261cb4331b | |
parent | f1cb10360b3c092b160cc75c56ef8228eff165df (diff) |
bin/pkg: pkg_info: Check if the package actually exists
-rwxr-xr-x | bin/pkg | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |