mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-04 19:28:49 +08:00
Remove stale code from previous modulemd version
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user