Skip to content

Commit b69c068

Browse files
author
Alan O'Cais
committed
Fix creaky logic
1 parent e57d393 commit b69c068

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

easybuild/framework/easyconfig/tweak.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,8 +1201,9 @@ def find_potential_version_mappings(dep, toolchain_mapping, versionsuffix_mappin
12011201
'versionsuffix': newversionsuffix})
12021202

12031203
ignored_versionsuffix_greater = \
1204-
highest_version_ignoring_versionsuffix is not None and highest_version is not None and \
1205-
LooseVersion(highest_version_ignoring_versionsuffix) > LooseVersion(highest_version)
1204+
highest_version_ignoring_versionsuffix is not None and highest_version is None or \
1205+
(highest_version_ignoring_versionsuffix is not None and highest_version is not None and
1206+
LooseVersion(highest_version_ignoring_versionsuffix) > LooseVersion(highest_version))
12061207

12071208
exclude_alternate_versionsuffixes = False
12081209
if ignored_versionsuffix_greater:

0 commit comments

Comments
 (0)