From 4b2150940d0fcedcc1a86d63e4c8ece7a54af519 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Fri, 22 Dec 2023 05:07:55 +0100 Subject: [PATCH] packages/build: use copy && remove_file() instead of shutil.move() --- packages/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/build.py b/packages/build.py index 455126b..bcd5403 100644 --- a/packages/build.py +++ b/packages/build.py @@ -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