aboutsummaryrefslogtreecommitdiffstats
path: root/ulri
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2012-03-05 20:27:21 +0000
committerPascal Terjan <pterjan@mageia.org>2012-03-05 20:27:21 +0000
commit909bcc7f9cd9567306eea8627fdba8e641535933 (patch)
tree163e62a0e61425ae3ea0a2c2311914585ca5b923 /ulri
parent5f4056722f237fb55da3cdc47fbfb045ad480170 (diff)
downloadiurt-909bcc7f9cd9567306eea8627fdba8e641535933.tar
iurt-909bcc7f9cd9567306eea8627fdba8e641535933.tar.gz
iurt-909bcc7f9cd9567306eea8627fdba8e641535933.tar.bz2
iurt-909bcc7f9cd9567306eea8627fdba8e641535933.tar.xz
iurt-909bcc7f9cd9567306eea8627fdba8e641535933.zip
Run emi when something finished building
Diffstat (limited to 'ulri')
-rwxr-xr-xulri3
1 files changed, 3 insertions, 0 deletions
diff --git a/ulri b/ulri
index b9a35f7..bd93c01 100755
--- a/ulri
+++ b/ulri
@@ -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();