aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2016-10-11 19:34:26 +0100
committerPascal Terjan <pterjan@gmail.com>2016-10-12 00:10:01 +0100
commitbf6f7e3ad1ef4083e933975e5b8b3b756633ca2e (patch)
treecbe5a9525c85af9f177743e0cea62ed1d5948f2e
parentb14087d92f6c5d2430f97902e84d7f24027044bc (diff)
downloadiurt-bf6f7e3ad1ef4083e933975e5b8b3b756633ca2e.tar
iurt-bf6f7e3ad1ef4083e933975e5b8b3b756633ca2e.tar.gz
iurt-bf6f7e3ad1ef4083e933975e5b8b3b756633ca2e.tar.bz2
iurt-bf6f7e3ad1ef4083e933975e5b8b3b756633ca2e.tar.xz
iurt-bf6f7e3ad1ef4083e933975e5b8b3b756633ca2e.zip
Do not rebuild noarch packages that are already building/built
-rwxr-xr-xulri11
1 files changed, 8 insertions, 3 deletions
diff --git a/ulri b/ulri
index 1e36f98..4ca43f3 100755
--- a/ulri
+++ b/ulri
@@ -487,13 +487,18 @@ foreach my $prefix (sort keys %pkg_tree) {
my $noarch = 1;
$noarch = 0 if any { !check_noarch("$todo_dir/${prefix}_$_") } @$srpms;
+ # Skip this media if the package is already building as noarch for it or
+ # already done.
+ next if $pkg_tree{$prefix}{media}{$media}{arch}{noarch};
+ next if $pkg_tree{$prefix}{media}{$media}{done_arch}{noarch};
+
my $arch_list = find { ref($_) eq 'ARRAY' } $config->{arch}, (ref($config->{arch}) eq 'HASH' ? ($config->{arch}{$target}, $config->{arch}{default}) : ());
my @arch_list = $arch_list ? @$arch_list : keys %{$config->{bot}};
# need to find a bot for each arch
foreach my $arch (@arch_list) {
- # Skip this arch if the package is already building as noarch or for this arch
- # or if it should not be built on this arch or it has already failed or succeeded
- next if $pkg_tree{$prefix}{media}{$media}{arch}{noarch};
+ # Skip this arch if the package is already building for it or if it
+ # should not be built on this arch or it has already failed or
+ # succeeded.
next if $pkg_tree{$prefix}{media}{$media}{arch}{$arch};
next if $pkg_tree{$prefix}{media}{$media}{done_arch}{$arch};
next if $pkg_tree{$prefix}{media}{$media}{excluded_arch}{$arch};