summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-08-02 15:06:10 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-08-02 15:06:10 +0200
commit4ff2e9050318f0c82a9c22e73166c959ec8f0d65 (patch)
treee01b72026d26533099d01745ab10b6dc110330f0
parent1b5b64b0dffda7c538b005e9edfebf9c23bc2a7c (diff)
bin/pkg: Also use progress for local list update
-rwxr-xr-xbin/pkg11
1 files 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 () {