Help testing: Write download progress to Logger's streams

This commit is contained in:
Stefano Rivera 2010-12-31 17:36:38 +02:00
parent 26c2198838
commit b78922b14a

View File

@ -273,12 +273,12 @@ class SourcePackage(object):
if block == '':
break
out.write(block)
sys.stdout.write('.')
sys.stdout.flush()
Logger.stdout.write('.')
Logger.stdout.flush()
in_.close()
out.close()
sys.stdout.write(' done\n')
sys.stdout.flush()
Logger.stdout.write(' done\n')
Logger.stdout.flush()
if self.dsc and not url.endswith('.dsc'):
if not self.dsc.verify_file(pathname):
Logger.error('Checksum does not match.')