Rev 2571: (John Arbash Meinel) A couple small updates for pushing over ftp. in http://bzr.arbash-meinel.com/branches/bzr/jam-integration

John Arbash Meinel john at arbash-meinel.com
Mon Jul 2 18:36:25 BST 2007


At http://bzr.arbash-meinel.com/branches/bzr/jam-integration

------------------------------------------------------------
revno: 2571
revision-id: john at arbash-meinel.com-20070702173553-nv2vsogfk2cvs9p7
parent: pqm at pqm.ubuntu.com-20070702162743-tp7a6o66eln52zly
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: jam-integration
timestamp: Mon 2007-07-02 12:35:53 -0500
message:
  (John Arbash Meinel) A couple small updates for pushing over ftp.
modified:
  bzrlib/transport/ftp.py        ftp.py-20051116161804-58dc9506548c2a53
-------------- next part --------------
=== modified file 'bzrlib/transport/ftp.py'
--- a/bzrlib/transport/ftp.py	2007-04-18 14:06:46 +0000
+++ b/bzrlib/transport/ftp.py	2007-07-02 17:35:53 +0000
@@ -166,6 +166,7 @@
             or 'could not open' in s
             or 'no such dir' in s
             or 'could not create file' in s # vsftpd
+            or 'file doesn\'t exist' in s
             ):
             raise errors.NoSuchFile(path, extra=extra)
         if ('file exists' in s):
@@ -329,7 +330,8 @@
                     raise e
                 raise
         except ftplib.error_perm, e:
-            self._translate_perm_error(e, abspath, extra='could not store')
+            self._translate_perm_error(e, abspath, extra='could not store',
+                                       unknown_exc=errors.NoSuchFile)
         except ftplib.error_temp, e:
             if retries > _number_of_retries:
                 raise errors.TransportError("FTP temporary error during PUT %s. Aborting."



More information about the bazaar-commits mailing list