resolve: name is a supported key

The use case here is building the same git repository from two
different branches, generating two different package names.

This was intended to be supported, the code already looks for the
`name` element, we just omitted adding it to the "schema verifier".
This commit is contained in:
Colin Walters
2018-10-23 14:22:16 +00:00
parent 10203761eb
commit 675756af32

View File

@@ -80,7 +80,7 @@ class BaseTaskResolve(Task):
def _expand_component(self, component):
for key in component:
if key not in ['src', 'spec', 'distgit', 'tag', 'branch', 'freeze', 'self-buildrequires',
if key not in ['src', 'name', 'spec', 'distgit', 'tag', 'branch', 'freeze', 'self-buildrequires',
'rpmwith', 'rpmwithout', 'srpmroot', 'override-version', 'defines',
'build-network']:
fatal("Unknown key {0} in component: {1}".format(key, component))