reckless: fix installer search

Some installer procedures have more options for valid entypoint
names than others. We iterate through each of their first choices,
then their second choices, etc..
This commit is contained in:
Alex Myers
2025-07-11 17:15:03 -05:00
committed by madelinevibes
parent afffb534b4
commit bd26f726f1

View File

@@ -821,6 +821,9 @@ class InferInstall():
for tier in range(0, 10):
# Look for each installers preferred entrypoint format first
for inst in INSTALLERS:
# All of this installer's entrypoint options exhausted.
if tier >= len(inst.entries):
continue
fmt = inst.entries[tier]
if '{name}' in fmt:
pre = fmt.split('{name}')[0]