From 2639c7c1275e29aecef34efc9df20a395c20f8a5 Mon Sep 17 00:00:00 2001 From: Florent Villard Date: Mon, 28 Aug 2006 16:29:09 +0000 Subject: also check for noarch (but it may not be necessary --- emi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'emi') diff --git a/emi b/emi index 4914860..4c70fbd 100755 --- a/emi +++ b/emi @@ -118,7 +118,7 @@ foreach my $prefix (keys %pkg_tree) { my $section = $pkg_tree{$prefix}{section}; print {$run{LOG}} "$program_name: processing $prefix in $path\n"; my %missing; - foreach my $mandatory_arch (@{$config->{mandatory_arch}}, 'src') { + foreach my $mandatory_arch (@{$config->{mandatory_arch}}, 'src', 'noarch') { print {$run{LOG}} "$program_name: checking if mandatory architecture $mandatory_arch is present: "; if (!$pkg_tree{$prefix}{arch}{$mandatory_arch} ){ if (!$cache->{arch}{$prefix}{$mandatory_arch}) { @@ -127,6 +127,7 @@ foreach my $prefix (keys %pkg_tree) { $ok = 0 } } else { + if ($mandatory_arch eq 'noarch') { $ok = 1 } print {$run{LOG}} "yes\n" } } -- cgit v1.2.1