aboutsummaryrefslogtreecommitdiffstats
path: root/ulri
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2011-04-14 20:32:59 +0000
committerPascal Terjan <pterjan@mageia.org>2011-04-14 20:32:59 +0000
commit80d4b06ce610b77671a57b5116d44752e046be5d (patch)
treecb27c7b8a915699abb1ff0276510a80f6e4dd750 /ulri
parente46c3654f4308a05379461413df1ab52187025d2 (diff)
downloadiurt-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
Diffstat (limited to 'ulri')
-rwxr-xr-xulri5
1 files changed, 3 insertions, 2 deletions
diff --git a/ulri b/ulri
index cd5bf38..08ba347 100755
--- a/ulri
+++ b/ulri
@@ -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;
}