Use shutil for rename in updater

This commit is contained in:
Ruud committed 2012-09-02 11:14:02 +02:00
1 parent 12f440b71e
commit 10052b7e86
1 file changed
+1 -1
+1 -1
View File
@@ -305,7 +305,7 @@ class SourceUpdater(BaseUpdater):
if not os.path.isdir(dirname):
self.makeDir(dirname)
os.rename(fromfile, tofile)
shutil.move(fromfile, tofile)
try:
existing_files.remove(tofile)
except ValueError: