hydra: fixed missing argument to restartbuild function

This commit is contained in:
Rob Vermaas 2010-12-07 13:25:29 +00:00
parent cd7742f610
commit 4fdd011b2d
2 changed files with 2 additions and 1 deletions

View file

@ -362,7 +362,7 @@ sub restart : Chained('build') PathPart Args(0) {
error($c, "This build cannot be restarted.")
unless $build->finished && -f $drvpath ;
restartBuild($build);
restartBuild($c->model('DB')->schema, $build);
$c->flash->{buildMsg} = "Build has been restarted.";

View file

@ -776,6 +776,7 @@ sub restartBuild {
my $paths = "";
foreach my $bs ($build->buildsteps) {
$paths = $paths . " " . $bs->outpath;
print STDERR $paths . "\n";
}
my $r = `nix-store --clear-failed-paths $paths $outpath`;