From 748c3409b4352dae654b496e311a29547ff1a7fc Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 6 Sep 2014 19:06:07 +0200 Subject: [PATCH] Don't maintain BuildInputs anymore We don't need to record inputs per build anymore because we have JobsetEvalInputs now. --- src/lib/Hydra/Helper/AddBuilds.pm | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/src/lib/Hydra/Helper/AddBuilds.pm b/src/lib/Hydra/Helper/AddBuilds.pm index f2ae6134..bcee1be9 100644 --- a/src/lib/Hydra/Helper/AddBuilds.pm +++ b/src/lib/Hydra/Helper/AddBuilds.pm @@ -596,37 +596,6 @@ sub checkBuild { } else { print STDERR " added to queue as build ", $build->id, "\n"; } - - # Record which inputs where used. - my %inputs; - $inputs{$jobset->nixexprinput} = $nixExprInput; - foreach my $name (keys %{$inputInfo}) { - # Unconditionally include all inputs that were included in - # the Nix search path (through the -I flag). We currently - # have no way to see which ones were actually used. - $inputs{$name} = $inputInfo->{$name}->[0] - if scalar @{$inputInfo->{$name}} == 1 - && defined $inputInfo->{$name}->[0]->{storePath}; - } - foreach my $arg (@{$buildInfo->{arg}}) { - $inputs{$arg->{name}} = $inputInfo->{$arg->{name}}->[$arg->{altnr}] - || die "invalid input"; - } - - foreach my $name (keys %inputs) { - my $input = $inputs{$name}; - $build->buildinputs_builds->create( - { name => $name - , type => $input->{type} - , uri => $input->{uri} - , revision => $input->{revision} - , value => $input->{value} - , emailresponsible => $input->{emailresponsible} - , dependency => $input->{id} - , path => $input->{storePath} || "" # !!! temporary hack - , sha256hash => $input->{sha256hash} - }); - } }); return $build;