From b404cdde6d5f301134a67f318462faa7cadeae62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Kandemir?= Date: Mon, 13 Dec 2010 13:03:05 +0000 Subject: [PATCH] file: Don't overwrite file when using with local filesystem --- pisi/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pisi/file.py b/pisi/file.py index a05bcb26..b07ed03a 100644 --- a/pisi/file.py +++ b/pisi/file.py @@ -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):