Skip to content

Commit 12b2db5

Browse files
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..
1 parent 266a5f9 commit 12b2db5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/reckless

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,9 @@ class InferInstall():
821821
for tier in range(0, 10):
822822
# Look for each installers preferred entrypoint format first
823823
for inst in INSTALLERS:
824+
# All of this installer's entrypoint options exhausted.
825+
if tier >= len(inst.entries):
826+
continue
824827
fmt = inst.entries[tier]
825828
if '{name}' in fmt:
826829
pre = fmt.split('{name}')[0]

0 commit comments

Comments
 (0)