From b814261fa39fc4a149a408ca263e295175ace254 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 6 Dec 2008 15:50:54 +0100 Subject: Added pkg pull as alias for pkg upgrade --- bin/pkg | 2 +- man/1/pkg | 2 +- provides/zsh/completions/_pkg | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/pkg b/bin/pkg index 4397a9f..dd5ae77 100755 --- a/bin/pkg +++ b/bin/pkg @@ -750,7 +750,7 @@ case $action in remove) pkg_remove $* ;; status) wrap pkg_status "$1" 'Checking package status' ;; update) pkg_update $* ;; - upgrade) + upgrade|pull) (( AUTOUPDATE )) && pkg_update_remote wrap pkg_upgrade "$1" 'Looking for updates' ;; diff --git a/man/1/pkg b/man/1/pkg index 31bb823..cc0f561 100644 --- a/man/1/pkg +++ b/man/1/pkg @@ -74,7 +74,7 @@ If no arguments is given, checks all installed packages Update local and remote package list -=item B [ I ] +=item B / B [ I ] retrieve and install newest available version of I. If no argument is given, updates all installed packages diff --git a/provides/zsh/completions/_pkg b/provides/zsh/completions/_pkg index 26d06f0..5e8ce9f 100644 --- a/provides/zsh/completions/_pkg +++ b/provides/zsh/completions/_pkg @@ -10,7 +10,7 @@ typeset expl function _pkg_action () { _wanted action expl 'action' \ compadd add install delete eval remove info list{,-all} \ - local-update log push remote-update refresh status update upgrade + local-update log pull push remote-update refresh status update upgrade } function _pkg_installed () { @@ -32,7 +32,7 @@ if (( CURRENT == 2 )) { _pkg_action } elif (( CURRENT == 3 )) { case ${words[2]} in - changelog|check|delete|log|push|refresh|remove|status|upgrade) + changelog|check|delete|log|pull|push|refresh|remove|status|upgrade) _pkg_installed ;; info) -- cgit v1.2.3