diff --git a/rust2rpm/crate.py b/rust2rpm/crate.py index b17428e..ea3c6b6 100644 --- a/rust2rpm/crate.py +++ b/rust2rpm/crate.py @@ -210,7 +210,7 @@ def process_project( crate_file_path, version = download_crate(project, version) if store_crate: - copy_target = os.path.join(os.getcwd(), f"{package.name}-{package.version}.crate") + copy_target = os.path.join(os.getcwd(), os.path.basename(crate_file_path)) if not (os.path.exists(copy_target) and os.path.samefile(crate_file_path, copy_target)): shutil.copy2(crate_file_path, copy_target)