#1180 Update source when recycling build
Merged 5 years ago by mikem. Opened 5 years ago by mizdebsk.
mizdebsk/koji recycle-source  into  master

file modified
+1 -1
@@ -5179,7 +5179,7 @@ 

  

      data['id'] = old['id']

      update = UpdateProcessor('build', clauses=['id=%(id)s'], values=data)

-     update.set(**dslice(data, ['state', 'task_id', 'owner', 'start_time', 'completion_time', 'epoch']))

+     update.set(**dslice(data, ['state', 'task_id', 'owner', 'start_time', 'completion_time', 'epoch', 'source']))

'extra' needs to be there also

      update.rawset(create_event='get_event()')

      update.execute()

      builddir = koji.pathinfo.build(data)

'extra' needs to be there also

'extra' needs to be there also

'volume_id' too

If that looks good, I'll go ahead and merge

Resetting 'volume_id' and 'extra' looks reasonable - with this change all fields of build are updated (except pkg_id, version and release, which form a unique key and must not change for recycled build).

Commit 06953ff fixes this pull-request

Pull-Request has been merged by mikem

5 years ago