[csw-devel] SF.net SVN: gar:[10170] csw/mgar/gar/v2/lib/python/checkpkg.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Thu Jun 10 13:21:08 CEST 2010
Revision: 10170
http://gar.svn.sourceforge.net/gar/?rev=10170&view=rev
Author: wahwah
Date: 2010-06-10 11:21:08 +0000 (Thu, 10 Jun 2010)
Log Message:
-----------
mGAR v2: checkpkg, prevent the progress bar from attempting to go over 100% (the number of lines is estimated).
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/checkpkg.py
Modified: csw/mgar/gar/v2/lib/python/checkpkg.py
===================================================================
--- csw/mgar/gar/v2/lib/python/checkpkg.py 2010-06-10 09:17:15 UTC (rev 10169)
+++ csw/mgar/gar/v2/lib/python/checkpkg.py 2010-06-10 11:21:08 UTC (rev 10170)
@@ -314,7 +314,7 @@
bar.start()
for line in system_pkgmap_fd:
i = count.next()
- if not i % 100:
+ if not i % 100 and (i / progressbar_divisor) <= bar.maxval:
bar.update(i / progressbar_divisor)
if stop_re.search(line):
continue
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