diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-10 03:15:49 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-10 03:15:49 -0800 |
commit | c4fddcc6e977eb7040c48581eb90f1a441cf3e71 (patch) | |
tree | cb5ec85355876f43f67f9e346fabd3252e7ee796 /lib | |
parent | b637f751648d3faa49bb9a4a9bd9842994b2ed62 (diff) | |
download | spack-c4fddcc6e977eb7040c48581eb90f1a441cf3e71.tar.gz spack-c4fddcc6e977eb7040c48581eb90f1a441cf3e71.tar.bz2 spack-c4fddcc6e977eb7040c48581eb90f1a441cf3e71.tar.xz spack-c4fddcc6e977eb7040c48581eb90f1a441cf3e71.zip |
Add 'provders' back into packages.yaml schema
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/config.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/spack/spack/config.py b/lib/spack/spack/config.py index 95a988f7ff..3a785fe692 100644 --- a/lib/spack/spack/config.py +++ b/lib/spack/spack/config.py @@ -224,6 +224,15 @@ section_schemas = { 'type': 'boolean', 'default': False, }, + 'providers': { + 'type': 'object', + 'default': {}, + 'additionalProperties': False, + 'patternProperties': { + r'\w[\w-]*': { + 'type' : 'array', + 'default' : [], + 'items' : { 'type' : 'string' },},},}, 'paths': { 'type' : 'object', 'default' : {}, @@ -534,11 +543,11 @@ def spec_externals(spec): allpkgs = get_config('packages') name = spec.name spec_locations = [] - + pkg_paths = allpkgs.get(name, {}).get('paths', None) if not pkg_paths: return [] - + for pkg,path in pkg_paths.iteritems(): if not spec.satisfies(pkg): continue |