in resetBuild use CANCELED state instead of FAILED
This commit is contained in:
parent
0db33c2291
commit
f05d34f209
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue