adjust tag macro namespace

This commit is contained in:
Mike McLean 2019-07-15 10:35:08 -04:00
parent 4f4a17361d
commit c9ade098ed

View file

@ -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