summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorTill Kamppeter <tkamppeter@mandriva.com>2001-08-12 22:35:37 +0000
committerTill Kamppeter <tkamppeter@mandriva.com>2001-08-12 22:35:37 +0000
commit4e32d33595c4d31e65f5394b0a85ae4cd3c62a89 (patch)
tree19f04d07af622d1988e96bb3865a3664c99ba299 /perl-install
parenta97f63b0824090f2a8fefa51a95842922a4f4587 (diff)
downloaddrakx-backup-do-not-use-4e32d33595c4d31e65f5394b0a85ae4cd3c62a89.tar
drakx-backup-do-not-use-4e32d33595c4d31e65f5394b0a85ae4cd3c62a89.tar.gz
drakx-backup-do-not-use-4e32d33595c4d31e65f5394b0a85ae4cd3c62a89.tar.bz2
drakx-backup-do-not-use-4e32d33595c4d31e65f5394b0a85ae4cd3c62a89.tar.xz
drakx-backup-do-not-use-4e32d33595c4d31e65f5394b0a85ae4cd3c62a89.zip
Lists get only sorted when the "sort" option is given.
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 16bf2ede6..8cd6b0720 100644
--- a/perl-install/interactive.pm
+++ b/perl-install/interactive.pm
@@ -230,7 +230,7 @@ sub ask_from_entries_refH_powered_normalize {
foreach my $e (@$l) {
if (my $l = $e->{list}) {
- if ($e->{sort} || @$l > 10 && !exists $e->{sort}) {
+ if ($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 ];