diff options
Diffstat (limited to 'genplatform.in')
-rw-r--r-- | genplatform.in | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/genplatform.in b/genplatform.in index e2c9497..fc6bf82 100644 --- a/genplatform.in +++ b/genplatform.in @@ -9,16 +9,19 @@ my @ALLARCH=qw{ @RPMALLARCH@ }; +my $anysuffix = '-.*-@RPMOS@-gnu'; my $suffix = '-@RPMCANONVENDOR@-@RPMOS@-gnu'; 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; - $done{$arch} and next; - $done{$arch} = 1; - print "$arch$suffix\n"; +foreach my $suf ($suffix, $anysuffix) { + my $found = 0; + my %done = (); + foreach my $arch (reverse @ALLARCH) { + $arch eq $canonarch and $found = 1; + $found or next; + $done{$arch} and next; + $done{$arch} = 1; + print "$arch$suf\n"; + } } |