diff options
author | Pascal Terjan <pterjan@mageia.org> | 2011-04-14 20:32:59 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2011-04-14 20:32:59 +0000 |
commit | 80d4b06ce610b77671a57b5116d44752e046be5d (patch) | |
tree | cb27c7b8a915699abb1ff0276510a80f6e4dd750 | |
parent | e46c3654f4308a05379461413df1ab52187025d2 (diff) | |
download | iurt-80d4b06ce610b77671a57b5116d44752e046be5d.tar iurt-80d4b06ce610b77671a57b5116d44752e046be5d.tar.gz iurt-80d4b06ce610b77671a57b5116d44752e046be5d.tar.bz2 iurt-80d4b06ce610b77671a57b5116d44752e046be5d.tar.xz iurt-80d4b06ce610b77671a57b5116d44752e046be5d.zip |
Use a different variable to check if a build is finished and if it has been started
-rwxr-xr-x | ulri | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -355,6 +355,7 @@ foreach my $prefix (keys %pkg_tree) { if (!$fail) { my @list = split "\n", sout($remote, "ls $prefix_dir"); my $error; + my $done; my $arch_check = join '|', $arch, if_($untranslated_arch{$arch}, @{$untranslated_arch{$arch}}); plog('MSG', "checking for $arch_check arch"); @@ -369,7 +370,7 @@ foreach my $prefix (keys %pkg_tree) { plog('OK', "build ok: $result"); if ($result =~ /\.$arch_check\.rpm$/) { - $compildone->{$prefix}{$arch} = 1; + $done = 1; } plog('DEBUG', "copy files to done"); @@ -380,7 +381,7 @@ foreach my $prefix (keys %pkg_tree) { $error = 1; last; } elsif (move("$result_file.new", $result_file)) { - if ($compildone->{$prefix}{$arch}) { + if ($done) { create_file($done_file, "$bot $host"); $success = 1; } |