Rewrite some parts related to handling the collection of bootloaders and kexts

This commit is contained in:
Hoang Hong Quan
2024-09-13 22:07:21 +07:00
parent 969d69eced
commit 30aecf78f2
5 changed files with 48 additions and 548 deletions

5
Scripts/smbios.py Executable file → Normal file
View File

@@ -21,11 +21,10 @@ class SMBIOS:
download_history = self.utils.read_file(self.g.download_history_file)
if download_history:
product_index = self.g.product_index_in_history("OpenCore", download_history["versions"])
product_index = self.g.product_index_in_history("OpenCore", download_history)
if product_index:
download_history["versions"].pop(product_index)
download_history["last_updated"] = "2024-07-25T12:00:00"
download_history.pop(product_index)
self.utils.write_file(self.g.download_history_file, download_history)
raise Exception("{} not found. Please reopen the program to download it".format(macserial_name))