summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/config.py13
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