Skip to content

Commit

Permalink
Quick fix to test external_metadata definition hypothesis
Browse files Browse the repository at this point in the history
  • Loading branch information
victorusu committed Mar 2, 2020
1 parent e6f3eb7 commit 6d3a63e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion easybuild/framework/easyconfig/easyconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -1233,6 +1233,7 @@ def handle_external_module_metadata(self, dep_name):
if external_metadata:
self.log.info("Updated dependency info with metadata from available modules for external module %s: %s",
dep_name, external_metadata)
dependency['external_module_metadata'] = external_metadata
else:
self.log.info("No metadata available for external module %s.", dep_name)
elif dep_name_no_version in self.external_modules_metadata:
Expand All @@ -1243,19 +1244,20 @@ def handle_external_module_metadata(self, dep_name):
if external_metadata:
self.log.info("Updated dependency info with metadata from available modules for external module "
"%s: %s", dep_name, external_metadata)
dependency['external_module_metadata'] = external_metadata
else:
self.log.info("No metadata available for external module %s.", dep_name)
else:
self.log.info("No metadata available for external module %s. Attempting to read from available modules",
dep_name)
external_metadata = self._handle_ext_module_metadata_by_probing_modules(dep_name)
if external_metadata:
dependency['external_module_metadata'] = external_metadata
self.log.info("Updated dependency info with metadata from available modules for external module %s: %s",
dep_name, external_metadata)
else:
self.log.info("No metadata available for external module %s.", dep_name)

dependency['external_module_metadata'] = external_metadata
return dependency

def handle_multi_deps(self):
Expand Down

0 comments on commit 6d3a63e

Please sign in to comment.