forked from lix-project/hydra
hydra: fixed missing argument to restartbuild function
This commit is contained in:
parent
cd7742f610
commit
4fdd011b2d
2 changed files with 2 additions and 1 deletions
|
@ -362,7 +362,7 @@ sub restart : Chained('build') PathPart Args(0) {
|
||||||
error($c, "This build cannot be restarted.")
|
error($c, "This build cannot be restarted.")
|
||||||
unless $build->finished && -f $drvpath ;
|
unless $build->finished && -f $drvpath ;
|
||||||
|
|
||||||
restartBuild($build);
|
restartBuild($c->model('DB')->schema, $build);
|
||||||
|
|
||||||
$c->flash->{buildMsg} = "Build has been restarted.";
|
$c->flash->{buildMsg} = "Build has been restarted.";
|
||||||
|
|
||||||
|
|
|
@ -776,6 +776,7 @@ sub restartBuild {
|
||||||
my $paths = "";
|
my $paths = "";
|
||||||
foreach my $bs ($build->buildsteps) {
|
foreach my $bs ($build->buildsteps) {
|
||||||
$paths = $paths . " " . $bs->outpath;
|
$paths = $paths . " " . $bs->outpath;
|
||||||
|
print STDERR $paths . "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
my $r = `nix-store --clear-failed-paths $paths $outpath`;
|
my $r = `nix-store --clear-failed-paths $paths $outpath`;
|
||||||
|
|
Loading…
Reference in a new issue