retitle 481947 Continue if file exists on server
tags 481947 + patch
thanks

I have reconsidered: if a file exists on the server, I think the
correct behaviour is to continue rather than aborting.

Please consider the enclosed patch.

diff -u dput-0.9.2.36/ftp.py new/dput-0.9.2.36/ftp.py
--- dput-0.9.2.36/ftp.py        2008-11-14 23:49:06.000000000 -0600
+++ new/dput-0.9.2.36/ftp.py    2008-12-19 20:38:49.000000000 -0600
@@ -61,9 +61,8 @@
         except ftplib.all_errors, e:
             print "\nError '%s' during ftp transfer of 
%s"%(str(e),package_name)
            if isinstance(e,ftplib.Error) and e.args and e.args[0][:3]=='553':
-             print """Note: This problem might be caused by files already 
existent on the server.
-      For the official Debian upload queues, the dcut(1) utility can be used
-      to remove stale files from unsuccessful uploads."""
+              print "Leaving existing file on server and continuing"
+              continue
            elif isinstance(e,ftplib.Error) and e.args and e.args[0][:1]=='5':
              print """Note: This error might indicate a problem with your 
passive_ftp setting.
       Please consult dput.cf(5) for details on this configuration option."""
Only in new/dput-0.9.2.36/: ftp.py~



Thanks,
-Steve

Attachment: signature.asc
Description: Digital signature

Reply via email to