1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-22 06:28:53 +02:00

dependency counter fixed. done += 1 needs to be indented correctly.

This commit is contained in:
Juergen Weigert
2010-03-09 02:28:07 +01:00
parent ec8bf4b60f
commit 8b3e24cd0e

View File

@@ -162,10 +162,10 @@ class Fetcher:
try:
# if there isn't a progress bar, there is no output at all
if not self.progress_obj:
print '%d/%d (%s) %s' % (done, all, i.project, i.filename)
print '%d/%d (%s) %s' % (done, needed, i.project, i.filename)
self.fetch(i)
if self.progress_obj:
print " %d/%d\r" % (done,all),
print " %d/%d\r" % (done, needed),
sys.stdout.flush()
except KeyboardInterrupt: