macos_installer_handler.py: List n-3 apps

Thanks @jazzzny for idea and implementation
This commit is contained in:
Mykola Grymalyuk
2024-06-13 16:21:58 -06:00
parent fc650bfd97
commit b2c01da5b2

View File

@@ -566,6 +566,11 @@ class RemoteInstallerCatalog:
newest_apps.pop(ia) newest_apps.pop(ia)
break break
# Remove EOL versions (n-3)
for ia in list(newest_apps):
if newest_apps[ia]["Version"].split('.')[0] < supported_versions[-3]:
newest_apps.pop(ia)
return newest_apps return newest_apps