aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Queue.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2016-10-20 15:18:25 +0100
committerPascal Terjan <pterjan@gmail.com>2016-10-20 20:25:53 +0100
commit35d26e4034d10592401c25801290e2b7fb111198 (patch)
tree35eb7155e42c0b404bae2e9d15b046ba79db2884 /lib/Iurt/Queue.pm
parent45e72c069afa78e2939d43f0a3cefe8012a93ba8 (diff)
downloadiurt-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/Queue.pm')
-rw-r--r--lib/Iurt/Queue.pm11
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) = @_;