Don't maintain BuildInputs anymore

We don't need to record inputs per build anymore because we have
JobsetEvalInputs now.
This commit is contained in:
Eelco Dolstra 2014-09-06 19:06:07 +02:00
parent 9c7f303255
commit 748c3409b4

View file

@ -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;