diff options
author | Olivier Thauvin <nanardon@mandriva.org> | 2007-06-25 13:53:44 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mandriva.org> | 2007-06-25 13:53:44 +0000 |
commit | da67bd88d6c635f9d031e38a53900e1f9be8567a (patch) | |
tree | 8eca2549e07e21568393ed84e689f61ad0c7516a /genplatform.in | |
parent | 2695721c39195862f57df2279228f972ebf34ec3 (diff) | |
download | rpm-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.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"; + } } |