Propagate checkresponsible from JobsetInput to BuildInput
Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
07157f8125
commit
3e4a4e3761
|
@ -148,7 +148,7 @@ sub fetchInputSystemBuild {
|
||||||
}
|
}
|
||||||
|
|
||||||
sub fetchInput {
|
sub fetchInput {
|
||||||
my ($plugins, $db, $project, $jobset, $name, $type, $value) = @_;
|
my ($plugins, $db, $project, $jobset, $name, $type, $value, $checkresponsbile) = @_;
|
||||||
my @inputs;
|
my @inputs;
|
||||||
|
|
||||||
if ($type eq "build") {
|
if ($type eq "build") {
|
||||||
|
@ -177,7 +177,10 @@ sub fetchInput {
|
||||||
die "input `$name' has unknown type `$type'." unless $found;
|
die "input `$name' has unknown type `$type'." unless $found;
|
||||||
}
|
}
|
||||||
|
|
||||||
$_->{type} = $type foreach @inputs;
|
foreach my $input (@inputs) {
|
||||||
|
$input->{type} = $type;
|
||||||
|
$input->{checkresponsible} = $checkresponsible;
|
||||||
|
}
|
||||||
|
|
||||||
return @inputs;
|
return @inputs;
|
||||||
}
|
}
|
||||||
|
@ -542,6 +545,7 @@ sub checkBuild {
|
||||||
, uri => $input->{uri}
|
, uri => $input->{uri}
|
||||||
, revision => $input->{revision}
|
, revision => $input->{revision}
|
||||||
, value => $input->{value}
|
, value => $input->{value}
|
||||||
|
, checkresponsible => $input->{checkresponsible}
|
||||||
, dependency => $input->{id}
|
, dependency => $input->{id}
|
||||||
, path => $input->{storePath} || "" # !!! temporary hack
|
, path => $input->{storePath} || "" # !!! temporary hack
|
||||||
, sha256hash => $input->{sha256hash}
|
, sha256hash => $input->{sha256hash}
|
||||||
|
|
|
@ -34,7 +34,7 @@ sub fetchInputs {
|
||||||
foreach my $input ($jobset->jobsetinputs->all) {
|
foreach my $input ($jobset->jobsetinputs->all) {
|
||||||
foreach my $alt ($input->jobsetinputalts->all) {
|
foreach my $alt ($input->jobsetinputalts->all) {
|
||||||
push @{$$inputInfo{$input->name}}, $_
|
push @{$$inputInfo{$input->name}}, $_
|
||||||
foreach fetchInput($plugins, $db, $project, $jobset, $input->name, $input->type, $alt->value);
|
foreach fetchInput($plugins, $db, $project, $jobset, $input->name, $input->type, $alt->value, $input->checkresponsible);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue