From 60a95f72ef2ba775554df7b85561ac9ac8726e3b Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Mon, 18 Jun 2007 22:49:52 +0000 Subject: - ensure noarch is added to our arch list --- genplatform.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"; } -- cgit v1.2.1