summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-12-06 15:50:54 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-12-06 15:50:54 +0100
commitb814261fa39fc4a149a408ca263e295175ace254 (patch)
tree574db2055c7dee1303b50b8f2f2410d349f00bd7
parentf20d55ea500a1313c952899c7816ec7a1de83b50 (diff)
Added pkg pull as alias for pkg upgrade
-rwxr-xr-xbin/pkg2
-rw-r--r--man/1/pkg2
-rw-r--r--provides/zsh/completions/_pkg4
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<upgrade> [ I<package> ]
+=item B<pull> / B<upgrade> [ I<package> ]
retrieve and install newest available version of I<package>.
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)