Skip to content

Commit 761c732

Browse files
committed
Handle False in pick_dep_version
`False` is a valid value to return to skip a dependency for an architecture, so don't error in that case.
1 parent 527dc21 commit 761c732

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

easybuild/tools/systemtools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,14 +1281,14 @@ def pick_dep_version(dep_version):
12811281
* a string value (or None)
12821282
* a dict with options to choose from
12831283
1284-
Return value is the version to use.
1284+
Return value is the version to use or False to skip this dependency.
12851285
"""
12861286
if dep_version is None:
12871287
_log.debug("Version is None, OK")
12881288
result = None
12891289
else:
12901290
result = pick_system_specific_value("version", dep_version)
1291-
if not isinstance(result, string_type):
1291+
if not isinstance(result, string_type) and result is not False:
12921292
typ = type(dep_version)
12931293
raise EasyBuildError("Unknown value type for version: %s (%s), should be string value", typ, dep_version)
12941294

0 commit comments

Comments
 (0)