in resetBuild use CANCELED state instead of FAILED

This commit is contained in:
Mike McLean 2008-03-12 01:41:25 -04:00
parent 0db33c2291
commit f05d34f209

View file

@ -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