Skip to content

Commit

Permalink
Merge pull request #1 from boegel/hmns_versionprefix
Browse files Browse the repository at this point in the history
versionprefix is not always available, only use it when it's defined
  • Loading branch information
ocaisa committed Oct 10, 2014
2 parents 83c9886 + 54bf7bb commit 723555a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions easybuild/tools/module_naming_scheme/hierarchical_mns.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def det_short_module_name(self, ec):

def det_full_version(self, ec):
"""Determine full version, taking into account version prefix/suffix."""

return ec['versionprefix'] + ec['version'] + ec['versionsuffix']

# versionprefix is not always available (e.g., for toolchains)
versionprefix = ec.get('versionprefix', '')
return versionprefix + ec['version'] + ec['versionsuffix']

def det_toolchain_compilers_name_version(self, tc_comps):
"""
Expand Down

0 comments on commit 723555a

Please sign in to comment.