diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-21 19:00:37 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-21 19:00:37 +0200 |
commit | 76c3de93879afb38b0f88be131999cfa13f52cf4 (patch) | |
tree | d1c7c5854bc4d6fd6bef37b332d1d2d5ba913f6a | |
parent | 220b47054d900c0139bde5981728f5f13402301c (diff) |
pkg: Improved some error messages
-rwxr-xr-x | bin/pkg | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -58,11 +58,11 @@ function say { } function check_installed { - [[ -n $1 && -d $PDIR/$1 ]] || die "Not installed: '$1'\n" + [[ -n $1 && -d $PDIR/$1 ]] || die "Package not installed: '$1'\n" } function check_valid { - list_exists $1 || die "No such package: '$1'\n" + list_exists $1 || die "Package does not exist: '$1'\n" } function clear_line { @@ -334,7 +334,7 @@ function list_update_remote { cp $tmpfile .list-remote } else { die "remote list update failed\n" \ - " -- note --\n" \ + "-- note --\n" \ "There were recent changes in pkg involving the package root\n\n" \ "You might want to copy the pkglist script ($PDIR/core/include/pkglist)\n" \ "into the package root, so that it's available as\n" \ @@ -665,7 +665,7 @@ function pkg_add { info "Package '$1' is already installed!\n" exit 1 } - list_exists $1 || die "No such package: $1\n" + check_valid $1 info "Retrieving package $1...\n" cd $PDIR || return 255 vcs_add $1 || return 255 |