diff options
Diffstat (limited to 'emi')
-rwxr-xr-x | emi | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -184,10 +184,11 @@ foreach my $prefix (keys %pkg_tree) { plog('NOTIFY', "processing $prefix"); plog('DEBUG', "... in $path"); my $ok = 1; - foreach my $m (@{$config->{mandatory_arch}}, 'src') { + my $has_arched_packages = scalar(difference2([ keys %{$pkg_tree{$prefix}{arch}} ], [ qw(src noarch) ])); + foreach my $m (if_($has_arched_packages, @{$config->{mandatory_arch}}), 'src') { $excluded{$prefix}{$m} and next; my $x = "yes"; - if (!$pkg_tree{$prefix}{arch}{$m} && !$pkg_tree{$prefix}{arch}{noarch}) { + if (!$pkg_tree{$prefix}{arch}{$m}) { if (!$cache->{arch}{$prefix}{$m}) { $missing{$m} = 1; $x = "no"; |