From b69a22cc542a4f20be646ec651f0c294c8d8c8d4 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 30 Jan 2001 18:18:13 +0000 Subject: adapt format functions given to ask_from_listf. $_ is no more set --- perl-install/install_interactive.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'perl-install/install_interactive.pm') diff --git a/perl-install/install_interactive.pm b/perl-install/install_interactive.pm index fe28f109a..be22710f3 100644 --- a/perl-install/install_interactive.pm +++ b/perl-install/install_interactive.pm @@ -204,14 +204,16 @@ sub partitionWizard { my $level = $::expert ? -9999 : 0; my @sol = grep { $_->[0] >= $level } @solutions; - log::l("solutions found: " . join('', map {$_->[1]} @sol) . " (all solutions found: " . join('', map {$_->[1]} @solutions) . ")"); + log::l( "solutions found: " . join('', map {$_->[1]} @sol) . + " (all solutions found: " . join('', map {$_->[1]} @solutions) . ")"); @solutions = @sol if @sol > 1; log::l("solutions: ", int @solutions); @solutions or $o->ask_warn('', _("I can't find any room for installing")), die 'already displayed'; my $ok; while (!$ok) { - my $sol = $o->ask_from_listf('', _("The DrakX Partitioning wizard found the following solutions:"), sub { $_->[1] }, \@solutions) or redo; + log::l('HERE: ', join(',', map { $_->[1] } @solutions)); + my $sol = $o->ask_from_listf('', _("The DrakX Partitioning wizard found the following solutions:"), sub { $_[0][1] }, \@solutions) or redo; log::l("partitionWizard calling solution $sol->[1]"); eval { $ok = $sol->[2]->() }; die if $@ =~ /setstep/; -- cgit v1.2.1