mirror of
https://github.com/outbackdingo/OpCore-Simplify.git
synced 2026-08-25 14:53:06 +00:00
Skill issue
This commit is contained in:
@@ -33,6 +33,7 @@ class gatheringFiles:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def update_download_database(self, kexts, download_history):
|
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")
|
dortania_builds_data = self.fetcher.fetch_and_parse_content(self.dortania_builds_url, "json")
|
||||||
seen_repos = set()
|
seen_repos = set()
|
||||||
|
|
||||||
@@ -44,12 +45,12 @@ class gatheringFiles:
|
|||||||
if not product or not product.get("product_name"):
|
if not product or not product.get("product_name"):
|
||||||
continue
|
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:
|
if product_index is None:
|
||||||
download_history.append(product)
|
download_database.append(product)
|
||||||
else:
|
else:
|
||||||
download_history[product_index].update(product)
|
download_database[product_index].update(product)
|
||||||
|
|
||||||
for kext in kexts:
|
for kext in kexts:
|
||||||
if not kext.checked:
|
if not kext.checked:
|
||||||
@@ -80,7 +81,7 @@ class gatheringFiles:
|
|||||||
"sha256": dortania_builds_data["OpenCorePkg"]["versions"][0]["hashes"]["release"]["sha256"]
|
"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):
|
def move_bootloader_kexts_to_product_directory(self, product_name):
|
||||||
if not os.path.exists(self.temporary_dir):
|
if not os.path.exists(self.temporary_dir):
|
||||||
@@ -215,7 +216,6 @@ class gatheringFiles:
|
|||||||
print("")
|
print("")
|
||||||
print("Updating" if product_history_index is not None else "Please wait for download", end=" ")
|
print("Updating" if product_history_index is not None else "Please wait for download", end=" ")
|
||||||
print("{}...".format(product_name))
|
print("{}...".format(product_name))
|
||||||
print("")
|
|
||||||
if product_download_url:
|
if product_download_url:
|
||||||
print("from {}".format(product_download_url))
|
print("from {}".format(product_download_url))
|
||||||
print("")
|
print("")
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ class IntegrityChecker:
|
|||||||
for root, _, files in os.walk(folder_path):
|
for root, _, files in os.walk(folder_path):
|
||||||
for name in files:
|
for name in files:
|
||||||
file_path = os.path.join(root, name)
|
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):
|
if relative_path == os.path.basename(manifest_path):
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user