diff options
author | Pascal Terjan <pterjan@gmail.com> | 2016-10-20 15:18:25 +0100 |
---|---|---|
committer | Pascal Terjan <pterjan@gmail.com> | 2016-10-20 20:25:53 +0100 |
commit | 35d26e4034d10592401c25801290e2b7fb111198 (patch) | |
tree | 35eb7155e42c0b404bae2e9d15b046ba79db2884 /lib/Iurt | |
parent | 45e72c069afa78e2939d43f0a3cefe8012a93ba8 (diff) | |
download | iurt-35d26e4034d10592401c25801290e2b7fb111198.tar iurt-35d26e4034d10592401c25801290e2b7fb111198.tar.gz iurt-35d26e4034d10592401c25801290e2b7fb111198.tar.bz2 iurt-35d26e4034d10592401c25801290e2b7fb111198.tar.xz iurt-35d26e4034d10592401c25801290e2b7fb111198.zip |
Only mandatory arches are fatal
Currently any previous failures casues to force fail anything
succeeding later.
Diffstat (limited to 'lib/Iurt')
-rw-r--r-- | lib/Iurt/Queue.pm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/Iurt/Queue.pm b/lib/Iurt/Queue.pm index f6907e6..3f552b9 100644 --- a/lib/Iurt/Queue.pm +++ b/lib/Iurt/Queue.pm @@ -12,6 +12,7 @@ use strict; our @EXPORT = qw( get_upload_tree_state cleanup_failed_build + check_if_mandatory_arch_failed ); sub apply_to_upload_tree { @@ -52,7 +53,15 @@ sub apply_to_upload_tree { } } } - + +sub check_if_mandatory_arch_failed { + my ($done_dir, $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"; + } +} + sub cleanup_failed_build { my ($todo_dir, $done_dir, $fail_dir, $prefix, $ent, $arch, $config) = @_; |