forked from lix-project/hydra
hydra: fixed missing argument to restartbuild function
This commit is contained in:
parent
cd7742f610
commit
4fdd011b2d
|
@ -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.";
|
||||
|
||||
|
|
|
@ -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`;
|
||||
|
|
Loading…
Reference in a new issue