diff options
author | Olivier Thauvin <nanardon@mandriva.org> | 2007-06-18 22:49:52 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mandriva.org> | 2007-06-18 22:49:52 +0000 |
commit | 60a95f72ef2ba775554df7b85561ac9ac8726e3b (patch) | |
tree | 1cf4368ecaf8015635ea5d04b2c96faf71c9e636 /genplatform.in | |
parent | 31d21f9ae093cd7f760464e523ca87f2bd24c6fa (diff) | |
download | rpm-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
Diffstat (limited to 'genplatform.in')
-rw-r--r-- | genplatform.in | 6 |
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"; } |