Move of avatars from .gajim on nfs to .cache on local disk fails
Bug description
If you have an NFS home directory, and ~/.cache is a symlink to a local directory (for better performance), the first run of the latest hg version of gajim gives the following error:
moving /home/jbebel/.gajim/avatars to /home/jbebel/.cache/gajim/avatars Traceback (most recent call last): File "gajim.py", line 436, in <module> check_paths.check_and_possibly_create_paths() File "/usr/local/share/gajim/src/common/check_paths.py", line 256, in check_and_possibly_create_paths check_and_possibly_move_config() File "/usr/local/share/gajim/src/common/check_paths.py", line 251, in check_and_possibly_move_config os.renames(src, dst) File "/usr/lib/python2.6/os.py", line 199, in renames rename(old, new) OSError: [Errno 18] Invalid cross-device link
Steps to reproduce
Move and symlink ~/.cache to another location. Run the latest hg version of gajim against an old gajim profile.
Software versions
OS version: Ubuntu 10.04 GTK version: 2.20.1 PyGTK version: 2.17.0