actually use Builder factory

This commit is contained in:
Nils Philippsen
2016-10-04 12:32:55 +02:00
parent ede7543970
commit 5368b6b344
3 changed files with 5 additions and 3 deletions

View File

@@ -70,7 +70,8 @@ def _finalize(config, session, msg, state):
# And install the macros.
module_name = parent.name
tag = parent.koji_tag
builder = rida.builder.KojiModuleBuilder(module_name, config, tag_name=tag)
builder = rida.builder.Builder(module_name, 'koji', config,
tag_name=tag)
builder.buildroot_connect()
# tag && add to srpm-build group
nvr = "{}-{}-{}".format(msg.build_name, msg.build_version,

View File

@@ -118,7 +118,7 @@ def wait(config, session, msg):
log.debug("Assigning koji tag=%s to module build" % tag)
build.koji_tag = tag
builder = rida.builder.KojiModuleBuilder(build.name, config, tag_name=tag)
builder = rida.builder.Builder(build.name, 'koji', config, tag_name=tag)
build.buildroot_task_id = builder.buildroot_connect()
log.debug("Adding dependencies %s into buildroot for module %s" % (dependencies, module_info))
builder.buildroot_add_repos(dependencies)

View File

@@ -75,7 +75,8 @@ def done(config, session, msg):
log.warn("Odd! All components in batch failed for %r." % module_build)
return
builder = rida.builder.KojiModuleBuilder(module_build.name, config, tag_name=tag)
builder = rida.builder.Builder(module_build.name, 'koji', config,
tag_name=tag)
builder.buildroot_connect()
# Ok, for the subset of builds that did complete successfully, check to