[csw-devel] SF.net SVN: gar:[20827] csw/mgar/gar/v2/lib/python/package_stats.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sat Apr 20 16:37:06 CEST 2013


Revision: 20827
          http://gar.svn.sourceforge.net/gar/?rev=20827&view=rev
Author:   wahwah
Date:     2013-04-20 14:37:05 +0000 (Sat, 20 Apr 2013)
Log Message:
-----------
pkgdb: Display ETA when indexing the whole catalog

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/package_stats.py

Modified: csw/mgar/gar/v2/lib/python/package_stats.py
===================================================================
--- csw/mgar/gar/v2/lib/python/package_stats.py	2013-04-20 13:35:16 UTC (rev 20826)
+++ csw/mgar/gar/v2/lib/python/package_stats.py	2013-04-20 14:37:05 UTC (rev 20827)
@@ -7,6 +7,7 @@
 import logging
 import os
 import progressbar
+import progressbar.widgets
 import mute_progressbar
 import re
 import pprint
@@ -499,7 +500,13 @@
     counter = itertools.count(1)
     self.logger.info("Juicing the svr4 package stream files...")
     if not self.debug:
-      pbar = progressbar.ProgressBar()
+      pbar = progressbar.ProgressBar(widgets=[
+        progressbar.widgets.Percentage(),
+        ' ',
+        progressbar.widgets.ETA(),
+        ' ',
+        progressbar.widgets.Bar()
+      ])
       pbar.maxval = total_packages
       pbar.start()
     else:

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list