diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index 6c7521a3..d58b9664 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -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."; diff --git a/src/lib/Hydra/Helper/AddBuilds.pm b/src/lib/Hydra/Helper/AddBuilds.pm index 791ae17f..e293d9b3 100644 --- a/src/lib/Hydra/Helper/AddBuilds.pm +++ b/src/lib/Hydra/Helper/AddBuilds.pm @@ -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`;