cli: output extra['rpm.macro.*'] to mock-config
Fixes: https://pagure.io/koji/issue/1859
This commit is contained in:
parent
c4f30abd58
commit
2bb460bc23
2 changed files with 26 additions and 4 deletions
|
|
@ -1029,6 +1029,11 @@ def anon_handle_mock_config(goptions, session, args):
|
|||
opts['bootstrap_image'] = buildcfg['extra']['mock.bootstrap_image']
|
||||
if 'mock.use_bootstrap' in buildcfg['extra']:
|
||||
opts['use_bootstrap'] = buildcfg['extra']['mock.use_bootstrap']
|
||||
opts['tag_macros'] = {}
|
||||
for key in buildcfg['extra']:
|
||||
if key.startswith('rpm.macro.'):
|
||||
macro = '%' + key[10:]
|
||||
opts['tag_macros'][macro] = buildcfg['extra'][key]
|
||||
output = koji.genMockConfig(name, arch, **opts)
|
||||
if options.ofile:
|
||||
with open(options.ofile, 'w') as fo:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue