diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-01-26 14:58:36 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-01-26 14:58:36 -0800 |
commit | 4d239b3038635cab4fdd436bcbcd91cde3acb58b (patch) | |
tree | 90059b32d74bcd53bf2a207bc14d3b914c4fb9bc | |
parent | 1a5270023803303f07db507fa36139fb52111b9d (diff) | |
parent | 7891346a4ff939bf14c1c3a688f50a2be9b5dbbe (diff) | |
download | spack-4d239b3038635cab4fdd436bcbcd91cde3acb58b.tar.gz spack-4d239b3038635cab4fdd436bcbcd91cde3acb58b.tar.bz2 spack-4d239b3038635cab4fdd436bcbcd91cde3acb58b.tar.xz spack-4d239b3038635cab4fdd436bcbcd91cde3acb58b.zip |
Merge pull request #399 from LLNL/bugfix/398-extensions-error
fix for issue 398, added extensions_for in RepoPath
-rw-r--r-- | lib/spack/spack/repository.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/spack/spack/repository.py b/lib/spack/spack/repository.py index 31596cee7a..b5df1168b6 100644 --- a/lib/spack/spack/repository.py +++ b/lib/spack/spack/repository.py @@ -233,6 +233,11 @@ class RepoPath(object): return providers + @_autospec + def extensions_for(self, extendee_spec): + return [p for p in self.all_packages() if p.extends(extendee_spec)] + + def find_module(self, fullname, path=None): """Implements precedence for overlaid namespaces. |