diff --git a/hub/kojihub.py b/hub/kojihub.py index c289f540..4a1670cf 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -3469,7 +3469,7 @@ def reset_build(build): WARNING: this function is potentially destructive. use with care. nulls task_id - sets state to FAILED + sets state to CANCELED clears data in rpminfo, rpmdeps, rpmfiles removes rpminfo entries from any buildroot_listings [!] remove files related to the build @@ -3498,7 +3498,7 @@ def reset_build(build): _dml(delete, binfo) delete = """DELETE FROM changelogs WHERE build_id=%(id)i""" _dml(delete, binfo) - binfo['state'] = koji.BUILD_STATES['FAILED'] + binfo['state'] = koji.BUILD_STATES['CANCELED'] update = """UPDATE build SET state=%(state)i, task_id=NULL WHERE id=%(id)i""" _dml(update, binfo) #now clear the build dir