summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-07 10:42:08 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-07 10:42:08 +0200
commit447213fc519df3fd0741aa0cb52e641060d4df83 (patch)
tree26124dbbe07063f0a76d4e1b1f75bbfdcf3ed3ec /bin
parent8038b277f89fdca7999451b2c3f60aee3b571862 (diff)
Shortened pkg, updated pkg(1) and the zsh completion
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/pkg b/bin/pkg
index f69cc0a..471f3a9 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -824,10 +824,13 @@ cd $PKG_DIR || die "Cannot cd $PKG_DIR"
# Note:
# wrap foobar "$1" <- the "" are neccessary here, since $1 is optional (and therefore may be empty)
case $action in
- add) pkg_add $* ;;
- delete) pkg_remove $* ;;
+ add|install)
+ pkg_add $*
+ ;;
+ delete|remove)
+ pkg_remove $*
+ ;;
info) pkg_info $* ;;
- install) pkg_add $* ;;
list) pkg_list $* ;;
log) pkg_log $* ;;
push)
@@ -835,7 +838,6 @@ case $action in
wrap pkg_push "$1" 'Pushing'
;;
refresh) wrap pkg_refresh "$1" 'Refreshing' ;;
- remove) pkg_remove $* ;;
status) wrap pkg_status "$1" 'Checking package status' ;;
update) pkg_update $* ;;
upgrade|pull)