mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
packages/build: use copy && remove_file() instead of shutil.move()
This commit is contained in:
parent
eaac9195ea
commit
4b2150940d
1 changed files with 2 additions and 1 deletions
|
@ -310,7 +310,8 @@ def try_download_package(dest_file_path: str, package: Pkgbuild, arch: Arch) ->
|
|||
logging.debug(f"While checking the HTTPS repo DB, we found a matching filename in the pacman cache{extra_msg}")
|
||||
if cache_matches:
|
||||
logging.info(f'copying cache file {cache_file} to repo as verified by remote checksum')
|
||||
shutil.move(cache_file, dest_file_path)
|
||||
shutil.copy(cache_file, dest_file_path)
|
||||
remove_file(cache_file)
|
||||
return dest_file_path
|
||||
url = repo_pkg.resolved_url
|
||||
assert url
|
||||
|
|
Loading…
Add table
Reference in a new issue