#62 Bugfix - st_complete needs to be defined earlier.
Merged 9 years ago by mikeb. Opened 9 years ago by ralph.
ralph/koji master  into  master

file modified
+1 -1
@@ -11000,10 +11000,10 @@ 

          task.assertHost(host.id)

          self.importImage(task_id, build_id, results)

  

+         st_complete = koji.BUILD_STATES['COMPLETE']

          build_info = get_build(build_id)

          koji.plugin.run_callbacks('preBuildStateChange', attribute='state', old=build_info['state'], new=st_complete, info=build_info)

  

-         st_complete = koji.BUILD_STATES['COMPLETE']

          update = UpdateProcessor('build', clauses=['id=%(build_id)i'],

                                   values={'build_id': build_id})

          update.set(id=build_id, state=st_complete)

no initial comment

This should fix the bug that @ausil pointed out here.

@ralph Could you rebase this, and I'll merge it?

Pull-Request has been rebased

9 years ago

Pull-Request has been merged by mikeb

9 years ago
Metadata