mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-17 04:40:01 +10:00
products.py: Add extra sanity check
This commit is contained in:
@@ -232,7 +232,8 @@ class CatalogProducts:
|
||||
continue
|
||||
try:
|
||||
if packaging.version.parse(installer["Version"]) < _newest_version:
|
||||
products_copy.pop(products_copy.index(installer))
|
||||
if installer in products_copy:
|
||||
products_copy.pop(products_copy.index(installer))
|
||||
except packaging.version.InvalidVersion:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user