diff options
author | Pascal Terjan <pterjan@mageia.org> | 2022-04-25 14:30:22 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2022-04-25 14:57:52 +0000 |
commit | e1b7d768bab93328f450ec13e230602df44ca6f3 (patch) | |
tree | 6408e487d4d125cf0e0d851357079d4b0546572e /ulri | |
parent | 1be1c9d62000e1fa7aedce432957e379bdeb305c (diff) | |
download | iurt-e1b7d768bab93328f450ec13e230602df44ca6f3.tar iurt-e1b7d768bab93328f450ec13e230602df44ca6f3.tar.gz iurt-e1b7d768bab93328f450ec13e230602df44ca6f3.tar.bz2 iurt-e1b7d768bab93328f450ec13e230602df44ca6f3.tar.xz iurt-e1b7d768bab93328f450ec13e230602df44ca6f3.zip |
ulri: Better maintain in progress builds
Diffstat (limited to 'ulri')
-rwxr-xr-x | ulri | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -314,6 +314,7 @@ foreach my $prefix (keys %pkg_tree) { unlink $lock_file; $run{bot}{$host}{$bot} = 0; + $ent->{media}{$media}{bot} = grep { $_->{pid} ne $pid || $_->{host} ne $host } @{$ent->{media}{$media}{bot}}; if (!$status) { # TODO: fetch/clean the logs @@ -542,6 +543,13 @@ foreach my $prefix (sort keys %pkg_tree) { if ($pid) { # Register that the package is building $run{bot}{$host}{$bot} = $prefix; + push @{$pkg_tree{$prefix}{media}{$media}{bot}}, { + bot => $bot, + host => $host, + date => $fulldate, + pid => $pid, + 'arch' => $arch, + }; $pkg_tree{$prefix}{media}{$media}{arch}{$noarch ? 'noarch' : $arch} = 1; my $lock_arch = $noarch ? "$arch-noarch" : $arch; |