aboutsummaryrefslogtreecommitdiffstats
path: root/emi
diff options
context:
space:
mode:
Diffstat (limited to 'emi')
-rwxr-xr-xemi2
1 files changed, 1 insertions, 1 deletions
diff --git a/emi b/emi
index 8357c59..ed45f07 100755
--- a/emi
+++ b/emi
@@ -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;