diff options
author | Pascal Terjan <pterjan@mageia.org> | 2011-05-09 23:26:51 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2011-05-09 23:26:51 +0000 |
commit | 35e26c46f7c9fa2cb60e0e8c406c6d4284e8f235 (patch) | |
tree | cbf736294953d3be716b893c491630602f12f033 /emi | |
parent | d5f7747d50921224758abfb6e0636158ca6ccf22 (diff) | |
download | iurt-35e26c46f7c9fa2cb60e0e8c406c6d4284e8f235.tar iurt-35e26c46f7c9fa2cb60e0e8c406c6d4284e8f235.tar.gz iurt-35e26c46f7c9fa2cb60e0e8c406c6d4284e8f235.tar.bz2 iurt-35e26c46f7c9fa2cb60e0e8c406c6d4284e8f235.tar.xz iurt-35e26c46f7c9fa2cb60e0e8c406c6d4284e8f235.zip |
Fix emi
Diffstat (limited to 'emi')
-rwxr-xr-x | emi | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -210,15 +210,15 @@ foreach my $prefix (sort keys %pkg_tree) { # We already have found universal finisher in that section, we're fine next if exists $targets{$target}{$section}{'arch_finisher'}{'noarch'}; - if ($pkg_tree{$prefix}{arch}{noarch}) { + if ($pkg_tree{$prefix}{section}{$section}{arch}{noarch}) { # This package is noarch, genhdlist for it will touch all archs $targets{$target}{$section}{'arch_finisher'} = { 'noarch' => $prefix }; } else { - my $has_new_arch = scalar(difference2([ keys %{$pkg_tree{$prefix}{arch}} ], [ keys %{$targets{$target}{$section}{'arch_finisher'}} ])); + my $has_new_arch = scalar(difference2([ keys %{$pkg_tree{$prefix}{section}{$section}{arch}} ], [ keys %{$targets{$target}{$section}{'arch_finisher'}} ])); if ($has_new_arch) { # We need this package to cover the new arch # Set it for all, it may allow getting rid of some others - foreach (keys %{$pkg_tree{$prefix}{arch}}) { + foreach (keys %{$pkg_tree{$prefix}{section}{$section}{arch}}) { $targets{$target}{$section}{'arch_finisher'}{$_} = $prefix; } } |