diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-06-16 23:33:41 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-06-16 23:33:41 +0200 |
commit | 884086f48f55d27886bc0a24f82e5c2669df7a2d (patch) | |
tree | 5f88c504a9313e251873cd365cc6f21abe72e50f /bin/pkg | |
parent | ad5ab14071ccbb8ad073002b9f7a3de5800ecec0 (diff) |
pkg {local-,remote-,}update → pkg update {local,remote,}
Diffstat (limited to 'bin/pkg')
-rwxr-xr-x | bin/pkg | 26 |
1 files changed, 10 insertions, 16 deletions
@@ -755,20 +755,16 @@ function pkg_refresh { } function pkg_update { - pkg_update_remote - pkg_update_local -} - -function pkg_update_remote { - info "Updating remote package list..." - list_update_remote - clear_line -} - -function pkg_update_local { - info "Updating local package list..." - list_update_local - clear_line + if [[ -z $1 || $1 == local ]] { + info "Updating local package list" + list_update_local + clear_line + } + if [[ -z $1 || $1 == remote ]] { + info "Updating remote package list" + list_update_remote + clear_line + } } function pkg_info { @@ -839,14 +835,12 @@ case $action in info) pkg_info $* ;; install) pkg_add $* ;; list) pkg_list $* ;; - local-update) pkg_update_local $* ;; log) pkg_log $* ;; push) (( AUTOUPDATE )) && pkg_update wrap pkg_push "$1" 'Pushing' ;; refresh) wrap pkg_refresh "$1" 'Refreshing' ;; - remote-update) pkg_update_remote $* ;; remove) pkg_remove $* ;; status) wrap pkg_status "$1" 'Checking package status' ;; update) pkg_update $* ;; |