r382 - trunk/src
Vagrant Cascadian
partial-mirror-devel@lists.alioth.debian.org
Thu, 02 Dec 2004 14:25:53 -0700
Author: vagrant-guest
Date: Thu Dec 2 14:25:51 2004
New Revision: 382
Modified:
trunk/src/debpartial-mirror.in
Log:
flush buffer after writing percentage, change "Error" into "Warning", minor english correction.
Modified: trunk/src/debpartial-mirror.in
==============================================================================
--- trunk/src/debpartial-mirror.in (original)
+++ trunk/src/debpartial-mirror.in Thu Dec 2 14:25:51 2004
@@ -214,6 +214,7 @@
while numBytes < content_length:
percent_line = "... %d%%" % (numBytes * 100 / content_length)
sys.stdout.write(percent_line + '\r')
+ sys.stdout.flush()
data = webPage.read(8 * 1024)
if not data:
@@ -226,7 +227,7 @@
if directory:
content = webPage.read()
else:
- print "Error: " + origin + " not exists."
+ print "Warning: " + origin + " does not exist."
webPage.close()
return False;