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):