Remove stale code from previous modulemd version

This commit is contained in:
Matt Prahl
2016-11-16 15:23:51 -05:00
parent d6418a7de5
commit 28d684331f

View File

@@ -87,24 +87,6 @@ def _finalize(config, session, msg, state):
builder.buildroot_add_artifacts([nvr,], install=install)
session.commit()
# Find all of the sibling builds of this particular build.
current_batch = parent.current_batch()
# If there are no components, transition module build state to 'done'
if not current_batch:
log.info("Batch is empty. Moving module state to DONE.")
parent.transition(config, module.BUILD_STATES['done'])
session.commit()
return
# Otherwise, check to see if all failed. If so, then we cannot continue on
# to a next batch. This module build is doomed.
if all([c.state != koji.BUILD_STATES['COMPLETE'] for c in current_batch]):
# They didn't all succeed.. so mark this module build as a failure.
parent.transition(config, models.BUILD_STATES['failed'], state_reason)
session.commit()
return
def complete(config, session, msg):
return _finalize(config, session, msg, state=koji.BUILD_STATES['COMPLETE'])