crate: fix undefined variable error caused by recent commit
This commit is contained in:
parent
bfe8c92989
commit
294741a2b1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue