aboutsummaryrefslogtreecommitdiffstats
path: root/emi
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2011-05-09 21:08:47 +0000
committerPascal Terjan <pterjan@mageia.org>2011-05-09 21:08:47 +0000
commit31897b85ad1b153269dd78bb3ce1411c0d20ee94 (patch)
tree59f80be5d645180b3aca37671f1d59bec98bae67 /emi
parent43ea1e6885c590f96a3dbc418584790b3a2e951d (diff)
downloadiurt-31897b85ad1b153269dd78bb3ce1411c0d20ee94.tar
iurt-31897b85ad1b153269dd78bb3ce1411c0d20ee94.tar.gz
iurt-31897b85ad1b153269dd78bb3ce1411c0d20ee94.tar.bz2
iurt-31897b85ad1b153269dd78bb3ce1411c0d20ee94.tar.xz
iurt-31897b85ad1b153269dd78bb3ce1411c0d20ee94.zip
Fix few bugs in previous big commit
Diffstat (limited to 'emi')
-rwxr-xr-xemi8
1 files changed, 4 insertions, 4 deletions
diff --git a/emi b/emi
index dc49a19..387593b 100755
--- a/emi
+++ b/emi
@@ -173,9 +173,9 @@ foreach my $prefix (sort keys %pkg_tree) {
plog('NOTIFY', "processing $prefix");
my $ok = 1;
- my $has_arched_packages = scalar(difference2([ keys %{$pkg_tree{$prefix}{arch}} ], [ qw(src noarch) ]));
foreach my $section (keys %{$pkg_tree{$prefix}{section}}) {
+ my $has_arched_packages = scalar(difference2([ keys %{$pkg_tree{$prefix}{section}{$section}{arch}} ], [ qw(src noarch) ]));
my $path = $pkg_tree{$prefix}{section}{$section}{path};
my %missing;
@@ -183,7 +183,7 @@ foreach my $prefix (sort keys %pkg_tree) {
foreach my $m (if_($has_arched_packages, @{$config->{mandatory_arch}}), 'src') {
$excluded{$prefix}{$section}{$m} and next;
my $x = "yes";
- if (!$pkg_tree{$prefix}{arch}{$m}) {
+ if (!$pkg_tree{$prefix}{section}{$section}{arch}{$m}) {
$missing{$m} = 1;
$x = "no";
$ok = 0;
@@ -302,11 +302,11 @@ foreach my $target (keys %targets) {
foreach my $prefix (@{$targets{$target}{$section}{'to_upload'}}) {
next if $is_finisher{$prefix};
- upload_prefix($prefix, $section);
+ upload_prefix_in_section($prefix, $section);
}
foreach my $prefix (keys %is_finisher) {
- upload_prefix($prefix, $section, 1);
+ upload_prefix_in_section($prefix, $section, 1);
}
}
}