]> git.michaelhowe.org Git - packages/b/bup.git/commit
index.py: os.rename() fails on Windows if dstfile already exists.
authorLukasz Kosewski <lkosewsk@gmail.com>
Sun, 10 Jan 2010 09:07:10 +0000 (04:07 -0500)
committerLukasz Kosewski <lkosewsk@gmail.com>
Sun, 10 Jan 2010 09:07:10 +0000 (04:07 -0500)
commit49f195951697ef5597336469bb7cbe680d283fc2
tree30e8bab73af3ce90614ab18837a4cc70ac25853d
parentba74eb4d2619f12a3eb786324fb035a674594a63
index.py:  os.rename() fails on Windows if dstfile already exists.

Hence, we perform an os.unlink on the dstfile if os.rename() receives
an OSError exception, and try again.
index.py