summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-08-18 22:42:57 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-08-18 22:42:57 +0000
commitfff406c0d039bd5094996a3ff0fa9c44173280ba (patch)
tree3dd0245750418b86121e2c3d6140310b86cbca7b /perl-install
parentbf9127e7a0970b3e90b6604e58490768baa6fe3d (diff)
downloaddrakx-backup-do-not-use-fff406c0d039bd5094996a3ff0fa9c44173280ba.tar
drakx-backup-do-not-use-fff406c0d039bd5094996a3ff0fa9c44173280ba.tar.gz
drakx-backup-do-not-use-fff406c0d039bd5094996a3ff0fa9c44173280ba.tar.bz2
drakx-backup-do-not-use-fff406c0d039bd5094996a3ff0fa9c44173280ba.tar.xz
drakx-backup-do-not-use-fff406c0d039bd5094996a3ff0fa9c44173280ba.zip
readd the sorting based on size when no sorting is precised
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/interactive.pm2
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 ];