aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2014-05-05 16:10:51 +0000
committerPascal Terjan <pterjan@gmail.com>2014-05-05 16:11:35 +0000
commit32c495d791683bec3d374e6dd570d5e187d7b2d5 (patch)
tree623807bd7a1004ce659b08dc5447cf7e04069873
parentb827b432e55d5f4586d0ce1f7e8b9af2a0f13265 (diff)
downloadiurt-32c495d791683bec3d374e6dd570d5e187d7b2d5.tar
iurt-32c495d791683bec3d374e6dd570d5e187d7b2d5.tar.gz
iurt-32c495d791683bec3d374e6dd570d5e187d7b2d5.tar.bz2
iurt-32c495d791683bec3d374e6dd570d5e187d7b2d5.tar.xz
iurt-32c495d791683bec3d374e6dd570d5e187d7b2d5.zip
Only register a package as building after we managed to contact the build node
-rw-r--r--NEWS1
-rwxr-xr-xulri13
2 files changed, 7 insertions, 7 deletions
diff --git a/NEWS b/NEWS
index fd486b2..d4ebb2a 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- don't close stdin if --stop is used (mga#13318)
- add a README
+- fix builds being skipped when a build node is unreachable
0.6.21
- fix code handling dependencies
diff --git a/ulri b/ulri
index 6da5f20..aadf51a 100755
--- a/ulri
+++ b/ulri
@@ -613,15 +613,8 @@ foreach my $prefix (sort keys %pkg_tree) {
foreach my $bot (keys %{$config->{bot}{$arch}{$host}}) {
next if $run{bot}{$host}{$bot};
- # Enable noarch lock after the first bot snarfs the package
- #
- $noarch_build{$prefix} = 1 if $noarch;
-
plog('INFO', "building on $host/$arch ($bot)");
- $run{bot}{$host}{$bot} = $prefix;
- $compildone->{$prefix}{$media}{$arch} = 1;
-
my $bot_conf = $config->{bot}{$arch}{$host}{$bot};
my $remote = ssh_setup($config->{ssh_options},
$bot_conf->{user}, $host);
@@ -643,6 +636,12 @@ foreach my $prefix (sort keys %pkg_tree) {
}
next unless $ok;
+ # Register that the package is building
+ $run{bot}{$host}{$bot} = $prefix;
+ $compildone->{$prefix}{$media}{$arch} = 1;
+ # Enable noarch lock after the first bot snarfs the package
+ $noarch_build{$prefix} = 1 if $noarch;
+
# spawn remote build bot and save output on local file
# (remove status.log before building, otherwise we can have
# a install_deps_failure and reschedule even if the package