Comment 4 for bug 412923

Revision history for this message
Falko Kellner (fkellner) wrote :

not sure why this seems to be working for everyone, maybe no one is running debian testing nowadays :)
Here the default python version is 2.5, maybe this is the issue? i dont know, but it's the only reason i could think of why no one else experiences this problem..

in /bzrlib/transport/ftp/__init__.py I changed

    def _rename_and_overwrite(self, abs_from, abs_to, f):
        """Do a fancy rename on the remote server.
        Using the implementation provided by osutils.
        """
        osutils.fancy_rename(abs_from, abs_to,
            rename_func=lambda p1, p2: self._rename(p1, p2, f),
            unlink_func=lambda p: self._delete(p, f))

to

    def _rename_and_overwrite(self, abs_from, abs_to, f):
        """ fancy super rename is broken, simply do it! """
        self._rename(abs_from, abs_to, f)

and it works! yay! I never did anything in python, so replacing stuff i did not understand with stuff i do understand seemed the right way to solve this. Please look into the fancy rename function - it does not work!