| |
@@ -987,6 +987,14 @@
|
| |
name = options.name
|
| |
else:
|
| |
name = "%(tag_name)s-repo_%(repoid)s" % opts
|
| |
+
|
| |
+ event = None
|
| |
+ if opts['repoid'] != 'latest':
|
| |
+ event = session.repoInfo(opts['repoid'])['create_event']
|
| |
+ buildcfg = session.getBuildConfig(opts['tag_name'], event=event)
|
| |
+ if 'mock.package_manager' in buildcfg['extra']:
|
| |
+ opts['package_manager'] = buildcfg['extra']['mock.package_manager']
|
| |
+
|
| |
output = koji.genMockConfig(name, arch, **opts)
|
| |
if options.ofile:
|
| |
fo = open(options.ofile, 'w')
|
| |
Fixes: #1167
Fixes: #339
This is more of a short term fix for this, but it does the job