Add 'provders' back into packages.yaml schema

This commit is contained in:
Todd Gamblin 2016-03-10 03:15:49 -08:00
parent b637f75164
commit c4fddcc6e9

View File

@ -224,6 +224,15 @@
'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