From 7bd11b87f0d0a5384d002fd4e94e8a3fce6846e7 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Tue, 10 Aug 2010 08:00:28 +0000 Subject: [PATCH] hydra: only use keepnr to determine if builds should be kept --- src/script/hydra_update_gc_roots.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script/hydra_update_gc_roots.pl b/src/script/hydra_update_gc_roots.pl index a07a5823..d94c1d27 100755 --- a/src/script/hydra_update_gc_roots.pl +++ b/src/script/hydra_update_gc_roots.pl @@ -34,11 +34,11 @@ sub keepBuild { # Go over all projects. -foreach my $project ($db->resultset('Projects')->search({hidden => 0},{})) { +foreach my $project ($db->resultset('Projects')->all) { # Go over all jobs in this project. - foreach my $job ($project->jobs->search({hidden => 0}, { join => "jobset"})) { + foreach my $job ($project->jobs->all) { print STDERR "*** looking for builds to keep in job ", $project->name, ":", $job->jobset->name, ":", $job->name, "\n";