forked from lix-project/hydra
Shut up some Perl 5.20 warnings
This commit is contained in:
parent
5e265e6739
commit
9e00d98d34
|
@ -306,7 +306,7 @@ sub dashboard :Chained('user') :Args(0) {
|
||||||
my @builds = $j->job->builds->search(
|
my @builds = $j->job->builds->search(
|
||||||
{ },
|
{ },
|
||||||
{ rows => 20, order_by => "id desc" });
|
{ rows => 20, order_by => "id desc" });
|
||||||
push $c->stash->{starredJobs}, { job => $j->job, builds => [@builds] };
|
push @{$c->stash->{starredJobs}}, { job => $j->job, builds => [@builds] };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ EOF
|
||||||
$res .= "else " if !$first;
|
$res .= "else " if !$first;
|
||||||
$res .= "if system == ${\escape $system} then {\n\n";
|
$res .= "if system == ${\escape $system} then {\n\n";
|
||||||
|
|
||||||
foreach my $job (keys $perSystem{$system}) {
|
foreach my $job (keys %{$perSystem{$system}}) {
|
||||||
my $pkg = $perSystem{$system}->{$job};
|
my $pkg = $perSystem{$system}->{$job};
|
||||||
my $build = $pkg->{build};
|
my $build = $pkg->{build};
|
||||||
$res .= " # Hydra build ${\$build->id}\n";
|
$res .= " # Hydra build ${\$build->id}\n";
|
||||||
|
@ -78,7 +78,7 @@ EOF
|
||||||
if $build->maintainers;
|
if $build->maintainers;
|
||||||
$res .= " };\n";
|
$res .= " };\n";
|
||||||
$res .= " } {\n";
|
$res .= " } {\n";
|
||||||
my @outputNames = sort (keys $pkg->{outputs});
|
my @outputNames = sort (keys %{$pkg->{outputs}});
|
||||||
$res .= " ${\escape $_} = ${\escape $pkg->{outputs}->{$_}};\n" foreach @outputNames;
|
$res .= " ${\escape $_} = ${\escape $pkg->{outputs}->{$_}};\n" foreach @outputNames;
|
||||||
my $out = defined $pkg->{outputs}->{"out"} ? "out" : $outputNames[0];
|
my $out = defined $pkg->{outputs}->{"out"} ? "out" : $outputNames[0];
|
||||||
$res .= " }).$out;\n\n";
|
$res .= " }).$out;\n\n";
|
||||||
|
|
Loading…
Reference in a new issue