From 99026841d905b58ece27a4946ba5bb96601cf669 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Wed, 3 Feb 2016 23:27:25 +0000 Subject: Move exclude_machine to a better place --- ulri | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'ulri') diff --git a/ulri b/ulri index 5fb309d..b414f71 100755 --- a/ulri +++ b/ulri @@ -219,14 +219,6 @@ plog('DEBUG', "input queue is $todo"); my %pkg_tree = get_upload_tree_state($config); -sub exclude_machine { - my ($config, $host) = @_; - plog('INFO', "Excluding build host $host"); - foreach my $arch (keys %{$config->{bot}}) { - delete $config->{bot}{$arch}{$host}; - } -} - # Load bot status # foreach my $prefix (keys %pkg_tree) { @@ -761,6 +753,14 @@ sub check_file_timeout { $i == $time; } +sub exclude_machine { + my ($config, $host) = @_; + plog('INFO', "Excluding build host $host"); + foreach my $arch (keys %{$config->{bot}}) { + delete $config->{bot}{$arch}{$host}; + } +} + __END__ # ulri ends here -- cgit v1.2.1