aboutsummaryrefslogtreecommitdiffstats
path: root/genplatform.in
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2007-06-25 13:53:44 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2007-06-25 13:53:44 +0000
commitda67bd88d6c635f9d031e38a53900e1f9be8567a (patch)
tree8eca2549e07e21568393ed84e689f61ad0c7516a /genplatform.in
parent2695721c39195862f57df2279228f972ebf34ec3 (diff)
downloadrpm-setup-da67bd88d6c635f9d031e38a53900e1f9be8567a.tar
rpm-setup-da67bd88d6c635f9d031e38a53900e1f9be8567a.tar.gz
rpm-setup-da67bd88d6c635f9d031e38a53900e1f9be8567a.tar.bz2
rpm-setup-da67bd88d6c635f9d031e38a53900e1f9be8567a.tar.xz
rpm-setup-da67bd88d6c635f9d031e38a53900e1f9be8567a.zip
- make our platform more comprehensive for other vendor
Diffstat (limited to 'genplatform.in')
-rw-r--r--genplatform.in19
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";
+ }
}