From 8792277ec12fadb534351c6209a721f563bc8f3d Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 1 Jan 2013 10:00:13 +0000 Subject: fix test --- emi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emi') 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; -- cgit v1.2.1