aboutsummaryrefslogtreecommitdiffstats
path: root/ulri
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2016-02-03 23:27:25 +0000
committerPascal Terjan <pterjan@gmail.com>2016-02-03 23:27:25 +0000
commit99026841d905b58ece27a4946ba5bb96601cf669 (patch)
tree2c96f2206bb64a46fa08442c45365a610d641db7 /ulri
parent771d840cb61a092b478b4898e228c11b8b585540 (diff)
downloadiurt-99026841d905b58ece27a4946ba5bb96601cf669.tar
iurt-99026841d905b58ece27a4946ba5bb96601cf669.tar.gz
iurt-99026841d905b58ece27a4946ba5bb96601cf669.tar.bz2
iurt-99026841d905b58ece27a4946ba5bb96601cf669.tar.xz
iurt-99026841d905b58ece27a4946ba5bb96601cf669.zip
Move exclude_machine to a better place
Diffstat (limited to 'ulri')
-rwxr-xr-xulri16
1 files changed, 8 insertions, 8 deletions
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