mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-21 22:18:52 +02:00
dependency counter fixed. done += 1 needs to be indented correctly.
This commit is contained in:
@@ -162,17 +162,17 @@ class Fetcher:
|
|||||||
try:
|
try:
|
||||||
# if there isn't a progress bar, there is no output at all
|
# if there isn't a progress bar, there is no output at all
|
||||||
if not self.progress_obj:
|
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)
|
self.fetch(i)
|
||||||
if self.progress_obj:
|
if self.progress_obj:
|
||||||
print " %d/%d\r" % (done,all),
|
print " %d/%d\r" % (done, needed),
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print 'Cancelled by user (ctrl-c)'
|
print 'Cancelled by user (ctrl-c)'
|
||||||
print 'Exiting.'
|
print 'Exiting.'
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
done += 1
|
done += 1
|
||||||
for project, pkgs in self.cpio.iteritems():
|
for project, pkgs in self.cpio.iteritems():
|
||||||
repo = pkgs.values()[0].repository
|
repo = pkgs.values()[0].repository
|
||||||
query = [ 'binary=%s' % quote_plus(i) for i in pkgs.keys() ]
|
query = [ 'binary=%s' % quote_plus(i) for i in pkgs.keys() ]
|
||||||
|
Reference in New Issue
Block a user