Skip to content

Commit e7bdbe0

Browse files
committed
fixed incorrect renaming of variable toolchain_candidate
1 parent 85303a3 commit e7bdbe0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

easybuild/framework/easyconfig/tweak.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,9 +1139,9 @@ def find_potential_version_mappings(dep, toolchain_mapping, versionsuffix_mappin
11391139
cand_paths_filtered = []
11401140
for path in cand_paths:
11411141
tc_candidate = fetch_parameters_from_easyconfig(read_file(path), ['toolchain'])[0]
1142-
if isinstance(tc_candidate, dict) and toolchain_candidate['name'] == SYSTEM_TOOLCHAIN_NAME:
1142+
if isinstance(tc_candidate, dict) and tc_candidate['name'] == SYSTEM_TOOLCHAIN_NAME:
11431143
cand_paths_filtered += [path]
1144-
if isinstance(tc_candidate, string_type) and toolchain_candidate == "SYSTEM":
1144+
if isinstance(tc_candidate, string_type) and tc_candidate == "SYSTEM":
11451145
cand_paths_filtered += [path]
11461146

11471147
cand_paths = cand_paths_filtered

0 commit comments

Comments
 (0)