From 4fdd011b2da2c9d996f7881bbfe9c428c5e9bc3c Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Tue, 7 Dec 2010 13:25:29 +0000 Subject: [PATCH] hydra: fixed missing argument to restartbuild function --- src/lib/Hydra/Controller/Build.pm | 2 +- src/lib/Hydra/Helper/AddBuilds.pm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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`;