From 9f10c0f9c0d37292bd2f709bfd2911e55d067e0e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 8 Mar 2012 01:17:11 +0100 Subject: [PATCH] Fix a reference to BuildResultInfo --- src/lib/Hydra/Controller/Build.pm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index c422ba9c..1ed6de72 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -411,12 +411,9 @@ sub cancel : Chained('build') PathPart Args(0) { # builds as well, but we would have to send a signal or # something to the build process. - $build->update({finished => 1, busy => 0, timestamp => time}); - - $c->model('DB::BuildResultInfo')->create( - { id => $build->id - , iscachedbuild => 0 - , buildstatus => 4 # = cancelled + $build->update( + { finished => 1, busy => 0, timestamp => time + , iscachedbuild => 0, buildstatus => 4 # = cancelled }); });