diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-09-13 09:23:28 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-09-13 09:23:28 +0200 |
commit | 4e2a23b468e1b58416608cd4d527f74564b8f9f1 (patch) | |
tree | a434240b003397c4bb9c6615e303eaf1c071bca7 | |
parent | 6aa154540a5dfba45edf26e5d167783dd2b8d57c (diff) |
Added pkg eval
-rwxr-xr-x | bin/pkg | 1 | ||||
-rw-r--r-- | man/1/pkg | 4 | ||||
-rw-r--r-- | provides/zsh/completions/_pkg | 4 |
3 files changed, 7 insertions, 2 deletions
@@ -636,6 +636,7 @@ case $1 in status) wrap pkg_status "$2" "Checking package status" ;; update) pkg_update ;; upgrade) wrap pkg_upgrade "$2" "Looking for updates" ;; + eval) eval $2 ;; *) die "wait, what?\n" ;; esac @@ -40,6 +40,10 @@ If no argument is given, checks all installed packages Remove I<package> from the local packages tree +=imen B<eval> I<expression> + +Evauluate I<expression>, e.g. to manually execute a hook + =item B<info> I<package> Show information on I<package>, like dependencies, version, etc diff --git a/provides/zsh/completions/_pkg b/provides/zsh/completions/_pkg index e4ecfff..b9008f5 100644 --- a/provides/zsh/completions/_pkg +++ b/provides/zsh/completions/_pkg @@ -9,7 +9,7 @@ typeset expl function _pkg_action () { _wanted action expl 'action' \ - compadd add install changelog changeroot check delete remove info \ + compadd add install changelog changeroot check delete eval remove info \ list list-all local-update log push remote-update status update upgrade } @@ -36,5 +36,5 @@ if (( CURRENT >= 3 )) { add|install) _arguments -s '2: :_pkg_notinstalled' ;; esac } else { - _arguments -s '1: :_pkg_action' + _pkg_action } |