From 4ff2e9050318f0c82a9c22e73166c959ec8f0d65 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 2 Aug 2008 15:06:10 +0200 Subject: bin/pkg: Also use progress for local list update --- bin/pkg | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bin/pkg b/bin/pkg index 0b41789..3d0f9c1 100755 --- a/bin/pkg +++ b/bin/pkg @@ -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 () { -- cgit v1.2.3