From 628df8aaf651234505b83ffa1dff1cbe732234ea Mon Sep 17 00:00:00 2001 From: Onn Date: Fri, 14 Nov 2025 14:18:03 +0700 Subject: [PATCH] Skill issue --- Scripts/gathering_files.py | 10 +++++----- Scripts/integrity_checker.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Scripts/gathering_files.py b/Scripts/gathering_files.py index 9fb20f3..e2fc5bf 100644 --- a/Scripts/gathering_files.py +++ b/Scripts/gathering_files.py @@ -33,6 +33,7 @@ class gatheringFiles: return None def update_download_database(self, kexts, download_history): + download_database = download_history.copy() dortania_builds_data = self.fetcher.fetch_and_parse_content(self.dortania_builds_url, "json") seen_repos = set() @@ -44,12 +45,12 @@ class gatheringFiles: if not product or not product.get("product_name"): continue - product_index = self.get_product_index(download_history, product.get("product_name")) + product_index = self.get_product_index(download_database, product.get("product_name")) if product_index is None: - download_history.append(product) + download_database.append(product) else: - download_history[product_index].update(product) + download_database[product_index].update(product) for kext in kexts: if not kext.checked: @@ -80,7 +81,7 @@ class gatheringFiles: "sha256": dortania_builds_data["OpenCorePkg"]["versions"][0]["hashes"]["release"]["sha256"] }) - return sorted(download_history, key=lambda x:x["product_name"]) + return sorted(download_database, key=lambda x:x["product_name"]) def move_bootloader_kexts_to_product_directory(self, product_name): if not os.path.exists(self.temporary_dir): @@ -215,7 +216,6 @@ class gatheringFiles: print("") print("Updating" if product_history_index is not None else "Please wait for download", end=" ") print("{}...".format(product_name)) - print("") if product_download_url: print("from {}".format(product_download_url)) print("") diff --git a/Scripts/integrity_checker.py b/Scripts/integrity_checker.py index 68e3cf3..2ec8650 100644 --- a/Scripts/integrity_checker.py +++ b/Scripts/integrity_checker.py @@ -64,7 +64,7 @@ class IntegrityChecker: for root, _, files in os.walk(folder_path): for name in files: file_path = os.path.join(root, name) - relative_path = os.path.relpath(file_path, folder_path) + relative_path = os.path.relpath(file_path, folder_path).replace('\\', '/') if relative_path == os.path.basename(manifest_path): continue