file: Don't overwrite file when using with local filesystem

This commit is contained in:
Bahadır Kandemir
2010-12-13 13:03:05 +00:00
parent e5d4b46c66
commit b404cdde6d
+1 -1
View File
@@ -138,7 +138,7 @@ class File:
else:
# copy to transfer dir
ctx.ui.info(_("Copying %s to transfer dir") % uri.get_uri(), verbose=True)
shutil.copy(uri.get_uri(), transfer_dir)
shutil.copy(uri.get_uri(), localfile)
else:
localfile = uri.get_uri() #TODO: use a special function here?
if not os.path.exists(localfile):