diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index e17056bf..c3836b51 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -443,9 +443,8 @@ sub restart : Chained('buildChain') PathPart Args(0) { requireProjectOwner($c, $build->project); - my $drvpath = $build->drvpath; error($c, "This build cannot be restarted.") - unless $build->finished && -f $drvpath; + unless $build->finished && -f $build->drvpath; restartBuild($c->model('DB')->schema, $build); diff --git a/src/root/build.tt b/src/root/build.tt index 58464629..7025854e 100644 --- a/src/root/build.tt +++ b/src/root/build.tt @@ -68,6 +68,38 @@ [% END %]