diff options
author | Pascal Terjan <pterjan@gmail.com> | 2014-05-05 16:10:51 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@gmail.com> | 2014-05-05 16:11:35 +0000 |
commit | 32c495d791683bec3d374e6dd570d5e187d7b2d5 (patch) | |
tree | 623807bd7a1004ce659b08dc5447cf7e04069873 | |
parent | b827b432e55d5f4586d0ce1f7e8b9af2a0f13265 (diff) | |
download | iurt-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-- | NEWS | 1 | ||||
-rwxr-xr-x | ulri | 13 |
2 files changed, 7 insertions, 7 deletions
@@ -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 @@ -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 |