# Bcc: control merge 519144 488316 thanks Hi dato,
Thank you for the bug report.
On 09/03/10 18:06 +0100, Adeodato Simó said ...
> Please try uploading via ftp with progress_indicator=2. After printing
> "done" for a file, there won't be a newline to separate/start the new
> file.
This seems to work OK for me, but you are the second person to report
this bug. Can you please try the following patch?
diff --git a/ftp.py b/ftp.py
index 9a6b2de..6fa4583 100644
--- a/ftp.py
+++ b/ftp.py
@@ -49,15 +49,15 @@ def upload(fqdn, login, incoming, files_to_upload, debug,
ftp_mode, progress=0,
f = open(afile,'r')
if progress:
f = dputhelper.FileWithProgress(f, ptype=progress,
- progressf=sys.stderr,
+ progressf=sys.stdout,
size=size)
# print without linefeed
sys.stdout.write(" Uploading %s: "% package_name)
- sys.stdout.flush()
ftp_connection.storbinary('STOR ' + package_name, \
f, 1024)
f.close()
- print "done."
+ sys.stdout.write("done.\n")
+ sys.stdout.flush()
except ftplib.all_errors, e:
print "%s"% (str(e))
if isinstance(e,ftplib.Error) and e.args and e.args[0][:3]=='553':
If this does not work, can you tell me how you are able to reproduce
this and send across your terminal settings?
Cheers,
Giridhar
--
Y Giridhar Appaji Nag | http://people.debian.org/~appaji/
signature.asc
Description: Digital signature

