diff options
-rwxr-xr-x | emi | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -193,7 +193,7 @@ foreach my $prefix (sort keys %pkg_tree) { foreach my $section (keys %{$pkg_tree{$prefix}{section}}) { my $mandatory_arch = find { ref($_) eq 'ARRAY' } $config->{mandatory_arch}, - $config->{mandatory_arch}{$target}, $config->{mandatory_arch}{default}, []; + (ref($config->{mandatory_arch}) eq 'HASH' ? ($config->{mandatory_arch}{$target}, $config->{mandatory_arch}{default}) : ()), []; my @wanted_archs = defined($pkg_tree{$prefix}{section}{$section}{arch}{noarch}) ? 'noarch' : @$mandatory_arch; my $path = $pkg_tree{$prefix}{section}{$section}{path}; my %missing; |