adjust tag macro namespace
This commit is contained in:
parent
4f4a17361d
commit
c9ade098ed
1 changed files with 5 additions and 1 deletions
|
|
@ -276,7 +276,11 @@ class BuildRoot(object):
|
|||
opts['module_hotfixes'] = self.config['extra']['mock.yum.module_hotfixes']
|
||||
if self.internal_dev_setup is not None:
|
||||
opts['internal_dev_setup'] = bool(self.internal_dev_setup)
|
||||
opts['tag_macros'] = dict([ _ for _ in self.config['extra'].items() if _[0].startswith('%') ])
|
||||
opts['tag_macros'] = {}
|
||||
for key in self.config['extra']:
|
||||
if key.startswith('rpm.macro.'):
|
||||
macro = '%' + key[10:]
|
||||
opts['tag_macros'][macro] = self.config['extra'][key]
|
||||
output = koji.genMockConfig(self.name, self.br_arch, managed=True, **opts)
|
||||
|
||||
#write config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue