diff options
author | Pascal Terjan <pterjan@gmail.com> | 2016-11-23 23:58:47 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@gmail.com> | 2016-11-24 00:11:48 +0000 |
commit | a3acef1071ae40919dff3fed0065d797b10f8286 (patch) | |
tree | bd8847b0353e9c47fb8a863c13fe1d8b6f25887c | |
parent | d25bcab33c08748bcffe20a6f40901cfc173a21e (diff) | |
download | iurt-a3acef1071ae40919dff3fed0065d797b10f8286.tar iurt-a3acef1071ae40919dff3fed0065d797b10f8286.tar.gz iurt-a3acef1071ae40919dff3fed0065d797b10f8286.tar.bz2 iurt-a3acef1071ae40919dff3fed0065d797b10f8286.tar.xz iurt-a3acef1071ae40919dff3fed0065d797b10f8286.zip |
Record failed build in the in-memory tree
-rw-r--r-- | lib/Iurt/Queue.pm | 4 | ||||
-rwxr-xr-x | ulri | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/Iurt/Queue.pm b/lib/Iurt/Queue.pm index 3f552b9..c4c79ad 100644 --- a/lib/Iurt/Queue.pm +++ b/lib/Iurt/Queue.pm @@ -55,10 +55,10 @@ sub apply_to_upload_tree { } sub check_if_mandatory_arch_failed { - my ($done_dir, $prefix, $ent, $config) = @_; + my ($media, $prefix, $ent, $config) = @_; my $mandatory_arch = get_mandatory_arch($config, $ent->{target}); foreach my $arch (@$mandatory_arch) { - return 1 if -f "${done_dir}/${prefix}_${arch}.fail"; + return 1 if $ent->{media}{$media}{failed_arch}{$arch}; } } @@ -384,7 +384,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"); - if (check_if_mandatory_arch_failed($done_dir, $prefix, $ent, $config)) { + if (check_if_mandatory_arch_failed($media, $prefix, $ent, $config)) { cleanup_failed_build($todo_dir, $done_dir, $fail_dir, $prefix, $ent, $arch, $config); } else { $something_finished = 1; @@ -398,6 +398,7 @@ foreach my $prefix (keys %pkg_tree) { plog('FAIL', "build failed"); create_file("$done_dir/${prefix}_$arch.fail", "$bot $host"); + $pkg_tree{$prefix}{media}{$media}{failed_arch}{$arch} = 1; make_path($fail_dir); mkdir("$fail_dir/$prefix"); |