Fix a reference to BuildResultInfo

This commit is contained in:
Eelco Dolstra 2012-03-08 01:17:11 +01:00
parent 07b3dffd20
commit 9f10c0f9c0

View file

@ -411,12 +411,9 @@ sub cancel : Chained('build') PathPart Args(0) {
# builds as well, but we would have to send a signal or # builds as well, but we would have to send a signal or
# something to the build process. # something to the build process.
$build->update({finished => 1, busy => 0, timestamp => time}); $build->update(
{ finished => 1, busy => 0, timestamp => time
$c->model('DB::BuildResultInfo')->create( , iscachedbuild => 0, buildstatus => 4 # = cancelled
{ id => $build->id
, iscachedbuild => 0
, buildstatus => 4 # = cancelled
}); });
}); });