Update aggregate handling

(cherry picked from commit cf961ac893)
This commit is contained in:
Eelco Dolstra 2020-02-17 16:33:25 +01:00
parent 15187b059b
commit 2a50daa377
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -697,7 +697,7 @@ sub checkJobsetWrapped {
foreach my $job (values %{$jobs}) {
next unless $job->{constituents};
my $x = $drvPathToId{$job->{drvPath}} or die;
foreach my $drvPath (split / /, $job->{constituents}) {
foreach my $drvPath (@{$job->{constituents}}) {
my $constituent = $drvPathToId{$drvPath};
if (defined $constituent) {
$db->resultset('AggregateConstituents')->update_or_create({aggregate => $x->{id}, constituent => $constituent->{id}});