diff options
author | Thierry Vignaud <tv@mageia.org> | 2013-01-01 10:00:13 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2013-01-01 10:00:13 +0000 |
commit | 8792277ec12fadb534351c6209a721f563bc8f3d (patch) | |
tree | e7698402e04e638bb7fd9b84d5b47cb7421b0999 | |
parent | 2032cdcf7e76e1af6f56311952932d8abcf1cc1a (diff) | |
download | iurt-8792277ec12fadb534351c6209a721f563bc8f3d.tar iurt-8792277ec12fadb534351c6209a721f563bc8f3d.tar.gz iurt-8792277ec12fadb534351c6209a721f563bc8f3d.tar.bz2 iurt-8792277ec12fadb534351c6209a721f563bc8f3d.tar.xz iurt-8792277ec12fadb534351c6209a721f563bc8f3d.zip |
fix test
-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; |