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 == '': if block == '':
break break
out.write(block) out.write(block)
sys.stdout.write('.') Logger.stdout.write('.')
sys.stdout.flush() Logger.stdout.flush()
in_.close() in_.close()
out.close() out.close()
sys.stdout.write(' done\n') Logger.stdout.write(' done\n')
sys.stdout.flush() Logger.stdout.flush()
if self.dsc and not url.endswith('.dsc'): if self.dsc and not url.endswith('.dsc'):
if not self.dsc.verify_file(pathname): if not self.dsc.verify_file(pathname):
Logger.error('Checksum does not match.') Logger.error('Checksum does not match.')