aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2007-06-18 22:49:52 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2007-06-18 22:49:52 +0000
commit60a95f72ef2ba775554df7b85561ac9ac8726e3b (patch)
tree1cf4368ecaf8015635ea5d04b2c96faf71c9e636
parent31d21f9ae093cd7f760464e523ca87f2bd24c6fa (diff)
downloadrpm-setup-60a95f72ef2ba775554df7b85561ac9ac8726e3b.tar
rpm-setup-60a95f72ef2ba775554df7b85561ac9ac8726e3b.tar.gz
rpm-setup-60a95f72ef2ba775554df7b85561ac9ac8726e3b.tar.bz2
rpm-setup-60a95f72ef2ba775554df7b85561ac9ac8726e3b.tar.xz
rpm-setup-60a95f72ef2ba775554df7b85561ac9ac8726e3b.zip
- ensure noarch is added to our arch list
-rw-r--r--genplatform.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/genplatform.in b/genplatform.in
index 0a22495..e2c9497 100644
--- a/genplatform.in
+++ b/genplatform.in
@@ -5,6 +5,7 @@ use strict;
use warnings;
my @ALLARCH=qw{
+ noarch
@RPMALLARCH@
};
@@ -13,8 +14,11 @@ my $canonarch = $ARGV[0] || `uname -m`;
chomp($canonarch);
my $found = 0;
+my %done = ();
foreach my $arch (reverse @ALLARCH) {
$arch eq $canonarch and $found = 1;
$found or next;
- printf "$arch$suffix\n";
+ $done{$arch} and next;
+ $done{$arch} = 1;
+ print "$arch$suffix\n";
}