diff options
-rw-r--r-- | perl-install/pkgs.pm | 4 |
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 { |