mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-19 22:00:00 +10:00
products.py: Streamline beta removal
Reduce additional loops to clear beta builds
This commit is contained in:
@@ -237,11 +237,9 @@ class CatalogProducts:
|
|||||||
except packaging.version.InvalidVersion:
|
except packaging.version.InvalidVersion:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# Remove Betas if there's a non-beta version available
|
# Remove beta versions if a public release is available
|
||||||
for installer in products:
|
if _newest_version != packaging.version.parse("0.0.0"):
|
||||||
if installer["Catalog"] in [SeedType.CustomerSeed, SeedType.DeveloperSeed, SeedType.PublicSeed]:
|
if installer["Catalog"] in [SeedType.CustomerSeed, SeedType.DeveloperSeed, SeedType.PublicSeed]:
|
||||||
for installer_2 in products:
|
|
||||||
if installer_2["Version"].split(".")[0] == installer["Version"].split(".")[0] and installer_2["Catalog"] not in [SeedType.CustomerSeed, SeedType.DeveloperSeed, SeedType.PublicSeed]:
|
|
||||||
if installer in products_copy:
|
if installer in products_copy:
|
||||||
products_copy.pop(products_copy.index(installer))
|
products_copy.pop(products_copy.index(installer))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user