aboutsummaryrefslogtreecommitdiffstats
path: root/emi
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-01-01 10:00:13 +0000
committerThierry Vignaud <tv@mageia.org>2013-01-01 10:00:13 +0000
commit8792277ec12fadb534351c6209a721f563bc8f3d (patch)
treee7698402e04e638bb7fd9b84d5b47cb7421b0999 /emi
parent2032cdcf7e76e1af6f56311952932d8abcf1cc1a (diff)
downloadiurt-8792277ec12fadb534351c6209a721f563bc8f3d.tar
iurt-8792277ec12fadb534351c6209a721f563bc8f3d.tar.gz
iurt-8792277ec12fadb534351c6209a721f563bc8f3d.tar.bz2
iurt-8792277ec12fadb534351c6209a721f563bc8f3d.tar.xz
iurt-8792277ec12fadb534351c6209a721f563bc8f3d.zip
fix test
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;