Add 'provders' back into packages.yaml schema
This commit is contained in:
parent
b637f75164
commit
c4fddcc6e9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user