diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-08-02 15:06:10 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-08-02 15:06:10 +0200 |
commit | 4ff2e9050318f0c82a9c22e73166c959ec8f0d65 (patch) | |
tree | e01b72026d26533099d01745ab10b6dc110330f0 /bin/pkg | |
parent | 1b5b64b0dffda7c538b005e9edfebf9c23bc2a7c (diff) |
bin/pkg: Also use progress for local list update
Diffstat (limited to 'bin/pkg')
-rwxr-xr-x | bin/pkg | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -212,7 +212,11 @@ list_update_remote () { list_update_local () { cd $PDIR rm -f .list + all=$(ls -1d $PDIR/*(@,/) | wc -l) + current=0 for i in *(@,/); { + current=$[$current+1] + progress $current $all "Updating package list" $i vcs_to_list $i >> .list } } @@ -539,11 +543,8 @@ pkg_status_wrapper () { } pkg_update () { - cd $PDIR - info "Updating package lists..." - list_update_remote - list_update_local - clear_line + pkg_update_remote + pkg_update_local } pkg_update_remote () { |