diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-05-21 18:11:07 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-05-21 18:11:07 +0200 |
commit | 4201faa159fa3f81cfd4d1dbd1e8c76e81c9adda (patch) | |
tree | 189afa9370c6bfb25f28c2d0e0b2b36f289d3924 | |
parent | d79ed915438d57432a715f7df3a9b9e94533aee6 (diff) |
bin/pkg: fixed some things pointed out by Zaba
- Don't execute 'pkg', but use the corresponding function
- print packagename on errors
-rwxr-xr-x | bin/pkg | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -28,7 +28,7 @@ check_deps () { echo -n "$1 depends on $dep. Install dependency? [Y/n] " read if [ ! "$REPLY" = 'n' ]; then - pkg add "$dep" + pkg_add "$dep" fi fi } @@ -36,7 +36,7 @@ check_deps () { pkg_add () { if [ -d $PDIR/$1 ]; then - echo_status "Package already installed!" + echo_status "Package '$1' is already installed!" return 100 fi check_deps "$1" @@ -55,7 +55,7 @@ pkg_add () { pkg_remove () { if [ ! -d $PDIR/$1 ]; then - echo_status "Package not installed!" + echo_status "Package '$1' is not installed!" return 100 fi if [ -f $PDIR/$1/hooks/pre-remove ]; then |