aboutsummaryrefslogtreecommitdiffstats
path: root/emi
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2006-08-28 16:29:09 +0000
committerFlorent Villard <warly@mandriva.com>2006-08-28 16:29:09 +0000
commit2639c7c1275e29aecef34efc9df20a395c20f8a5 (patch)
tree4501e36bf6a8626c1e96d8c9020f8d49eda6f7a6 /emi
parent32e362f9d93062fec2817fd7b2d74bd55ef45321 (diff)
downloadiurt-2639c7c1275e29aecef34efc9df20a395c20f8a5.tar
iurt-2639c7c1275e29aecef34efc9df20a395c20f8a5.tar.gz
iurt-2639c7c1275e29aecef34efc9df20a395c20f8a5.tar.bz2
iurt-2639c7c1275e29aecef34efc9df20a395c20f8a5.tar.xz
iurt-2639c7c1275e29aecef34efc9df20a395c20f8a5.zip
also check for noarch (but it may not be necessary
Diffstat (limited to 'emi')
-rwxr-xr-xemi3
1 files changed, 2 insertions, 1 deletions
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"
}
}