From 4e2a23b468e1b58416608cd4d527f74564b8f9f1 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 13 Sep 2008 09:23:28 +0200 Subject: Added pkg eval --- bin/pkg | 1 + man/1/pkg | 4 ++++ provides/zsh/completions/_pkg | 4 ++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/pkg b/bin/pkg index 4f2cb40..9b76318 100755 --- a/bin/pkg +++ b/bin/pkg @@ -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 diff --git a/man/1/pkg b/man/1/pkg index 0e53ca7..8bec1c3 100644 --- a/man/1/pkg +++ b/man/1/pkg @@ -40,6 +40,10 @@ If no argument is given, checks all installed packages Remove I from the local packages tree +=imen B I + +Evauluate I, e.g. to manually execute a hook + =item B I Show information on I, 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 } -- cgit v1.2.3