ostbuild: Make resolve fully expand config-opts, delete now-unnecessary vcsconfig
The source manifest format allows for compression, but it's more convenient for consuming code if it's fully expanded in one place.
This commit is contained in:
parent
b26b981b0d
commit
0a195e6874
|
|
@ -168,6 +168,17 @@ class OstbuildResolve(builtins.Builtin):
|
|||
component['branch'])
|
||||
component['revision'] = revision
|
||||
|
||||
if 'component' not in component:
|
||||
component['component'] = 'runtime'
|
||||
|
||||
config_opts = list(self.manifest['config-opts'])
|
||||
config_opts.extend(component.get('config-opts', []))
|
||||
component['config-opts'] = config_opts
|
||||
|
||||
# We expand these two keys
|
||||
del self.manifest['config-opts']
|
||||
del self.manifest['vcsconfig']
|
||||
|
||||
mirror_gitconfig_path = os.path.join(self.mirrordir, 'gitconfig')
|
||||
git_mirrordir = os.path.join(self.mirrordir, 'git')
|
||||
f = open(mirror_gitconfig_path, 'w')
|
||||
|
|
|
|||
Loading…
Reference in New Issue