aboutsummaryrefslogtreecommitdiffstats
path: root/ulri
diff options
context:
space:
mode:
Diffstat (limited to 'ulri')
-rwxr-xr-xulri14
1 files changed, 11 insertions, 3 deletions
diff --git a/ulri b/ulri
index 120b4b0..b662232 100755
--- a/ulri
+++ b/ulri
@@ -252,8 +252,6 @@ sub todo_func {
$arch =~ s/-.*//;
}
- $run{bot}{$host}{$bot} = $prefix;
-
# this should be in the cache, but waiting for a cache-clean option
$pkg_tree{$prefix}{media}{$media}{arch}{$arch} = 1;
@@ -309,6 +307,16 @@ check_upload_tree($todo, \&todo_func);
# time as the src.rpm in the todo tree
check_upload_tree($done, \&done_func);
+# Load bot status
+
+foreach my $prefix (keys %pkg_tree) {
+ my $ent = $pkg_tree{$prefix};
+ foreach my $media (keys %{$ent->{media}}) {
+ foreach my $bot (@{$ent->{media}{$media}{bot}}) {
+ $run{bot}{$bot->{host}}{$bot->{bot}} = $prefix;
+ }
+ }
+}
#
# Part 1: get results from finished builds
@@ -743,7 +751,7 @@ my %build_list;
foreach my $prefix (keys %pkg_tree) {
my $ent = $pkg_tree{$prefix};
foreach my $media (keys %{$ent->{media}}) {
- foreach my $bot (keys %{$ent->{media}{$media}{bot}}) {
+ foreach my $bot (@{$ent->{media}{$media}{bot}}) {
my $host = $bot->{host};
my $arch = $bot->{arch};
push @{$build_list{"$host/$arch"}}, $prefix;