Add 'provders' back into packages.yaml schema
This commit is contained in:
parent
b637f75164
commit
c4fddcc6e9
@ -224,6 +224,15 @@
|
|||||||
'type': 'boolean',
|
'type': 'boolean',
|
||||||
'default': False,
|
'default': False,
|
||||||
},
|
},
|
||||||
|
'providers': {
|
||||||
|
'type': 'object',
|
||||||
|
'default': {},
|
||||||
|
'additionalProperties': False,
|
||||||
|
'patternProperties': {
|
||||||
|
r'\w[\w-]*': {
|
||||||
|
'type' : 'array',
|
||||||
|
'default' : [],
|
||||||
|
'items' : { 'type' : 'string' },},},},
|
||||||
'paths': {
|
'paths': {
|
||||||
'type' : 'object',
|
'type' : 'object',
|
||||||
'default' : {},
|
'default' : {},
|
||||||
@ -534,11 +543,11 @@ def spec_externals(spec):
|
|||||||
allpkgs = get_config('packages')
|
allpkgs = get_config('packages')
|
||||||
name = spec.name
|
name = spec.name
|
||||||
spec_locations = []
|
spec_locations = []
|
||||||
|
|
||||||
pkg_paths = allpkgs.get(name, {}).get('paths', None)
|
pkg_paths = allpkgs.get(name, {}).get('paths', None)
|
||||||
if not pkg_paths:
|
if not pkg_paths:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
for pkg,path in pkg_paths.iteritems():
|
for pkg,path in pkg_paths.iteritems():
|
||||||
if not spec.satisfies(pkg):
|
if not spec.satisfies(pkg):
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user