From 64bad1726ec9ef3068f030f34a73fcaeea2e53d8 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sat, 6 Oct 2018 08:30:11 +0000 Subject: Only use mandatory archs for noarch builds --- NEWS | 2 ++ ulri | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 6cd1381..7caf616 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- ulri: only use mandatory archs for noarch builds + 0.7.6 - iurt: increase default timeout for commands to 10 minutes - ulri: consider build fail after faildelay even if machine is unreachable diff --git a/ulri b/ulri index 41d7867..9a31a3d 100755 --- a/ulri +++ b/ulri @@ -492,7 +492,15 @@ foreach my $prefix (sort keys %pkg_tree) { next if $pkg_tree{$prefix}{media}{$media}{arch}{noarch}; next if $pkg_tree{$prefix}{media}{$media}{done_arch}{noarch}; - my $arch_list = get_target_arch($config, $target); + # Only build noarch packages on mandatory architectures + # Other architectures may not be up to date + my $arch_list; + if ($noarch) { + $arch_list = get_mandatory_arch($config, $target); + } else { + $arch_list = get_target_arch($config, $target); + } + # need to find a bot for each arch foreach my $arch (@$arch_list) { # Skip this arch if the package is already building for it or if it -- cgit v1.2.1