Private GIT

Skip to content
Snippets Groups Projects
Commit 10052b7e authored by Ruud's avatar Ruud
Browse files

Use shutil for rename in updater

parent 12f440b7
No related branches found
No related tags found
No related merge requests found
...@@ -305,7 +305,7 @@ class SourceUpdater(BaseUpdater): ...@@ -305,7 +305,7 @@ class SourceUpdater(BaseUpdater):
if not os.path.isdir(dirname): if not os.path.isdir(dirname):
self.makeDir(dirname) self.makeDir(dirname)
os.rename(fromfile, tofile) shutil.move(fromfile, tofile)
try: try:
existing_files.remove(tofile) existing_files.remove(tofile)
except ValueError: except ValueError:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment