diff options
author | Pascal Terjan <pterjan@mageia.org> | 2012-03-05 20:27:21 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2012-03-05 20:27:21 +0000 |
commit | 909bcc7f9cd9567306eea8627fdba8e641535933 (patch) | |
tree | 163e62a0e61425ae3ea0a2c2311914585ca5b923 | |
parent | 5f4056722f237fb55da3cdc47fbfb045ad480170 (diff) | |
download | iurt-909bcc7f9cd9567306eea8627fdba8e641535933.tar iurt-909bcc7f9cd9567306eea8627fdba8e641535933.tar.gz iurt-909bcc7f9cd9567306eea8627fdba8e641535933.tar.bz2 iurt-909bcc7f9cd9567306eea8627fdba8e641535933.tar.xz iurt-909bcc7f9cd9567306eea8627fdba8e641535933.zip |
Run emi when something finished building
-rwxr-xr-x | ulri | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -293,6 +293,7 @@ check_upload_tree(\%run, $done, \&done_func,); plog('MSG', "check build bot results"); my %later; +my $something_finished; foreach my $prefix (keys %pkg_tree) { my $ent = $pkg_tree{$prefix}; foreach my $media (keys %{$ent->{media}}) { @@ -394,6 +395,7 @@ foreach my $prefix (keys %pkg_tree) { make_path("$done_dir/$prefix"); sget($remote, "$prefix_dir/log/*", "$done_dir/$prefix"); ssh($remote, "rm -rf $prefix_dir"); + $something_finished = 1; } } } # if ($status) @@ -760,6 +762,7 @@ plog('INFO', "jobs in queue:", %to_compile ? unlink $pidfile; +exec "emi" if $something_finished; exit(); |