diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-08-18 22:42:57 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-08-18 22:42:57 +0000 |
commit | fff406c0d039bd5094996a3ff0fa9c44173280ba (patch) | |
tree | 3dd0245750418b86121e2c3d6140310b86cbca7b | |
parent | bf9127e7a0970b3e90b6604e58490768baa6fe3d (diff) | |
download | drakx-fff406c0d039bd5094996a3ff0fa9c44173280ba.tar drakx-fff406c0d039bd5094996a3ff0fa9c44173280ba.tar.gz drakx-fff406c0d039bd5094996a3ff0fa9c44173280ba.tar.bz2 drakx-fff406c0d039bd5094996a3ff0fa9c44173280ba.tar.xz drakx-fff406c0d039bd5094996a3ff0fa9c44173280ba.zip |
readd the sorting based on size when no sorting is precised
-rw-r--r-- | perl-install/interactive.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index 5a6d6df97..14c9eb8f0 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -240,7 +240,7 @@ sub ask_from_normalize { foreach my $e (@$l) { if (my $l = $e->{list}) { - if ($e->{sort}) { + if ($e->{sort} || @$l > 10 && !exists $e->{sort}) { my @l2 = map { may_apply($e->{format}, $_) } @$l; my @places = sort { $l2[$a] cmp $l2[$b] } 0 .. $#l2; $e->{list} = $l = [ map { $l->[$_] } @places ]; |