summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index 80cbf6b9d..3ae45f94d 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -172,7 +172,9 @@ sub analyse_kernel_name {
sub packages2kernels {
my ($packages) = @_;
- map {
+ sort {
+ $a->{ext} cmp $b->{ext} || URPM::rpmvercmp($b->{version}, $a->{version});
+ } map {
if (my ($ext, $version) = analyse_kernel_name($_->name)) {
{ pkg => $_, ext => $ext, version => $version };
} else {