summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-01-23 20:13:18 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-01-23 20:13:18 +0000
commit08cb28f7f4136f293483f7fd1a0e849119e3335e (patch)
tree92c1f7083355f447a1ce6ded09ada6033314cc97 /perl-install
parent2fcbc894025a413a8007493eaa6a602dfb4c1980 (diff)
downloaddrakx-08cb28f7f4136f293483f7fd1a0e849119e3335e.tar
drakx-08cb28f7f4136f293483f7fd1a0e849119e3335e.tar.gz
drakx-08cb28f7f4136f293483f7fd1a0e849119e3335e.tar.bz2
drakx-08cb28f7f4136f293483f7fd1a0e849119e3335e.tar.xz
drakx-08cb28f7f4136f293483f7fd1a0e849119e3335e.zip
fix diskdrake in newt (causing error about missing method ->cylinder_size)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/diskdrake/interactive.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index d5e201840..11b326af6 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -177,7 +177,11 @@ sub main {
my $choose_txt = $current_part ? N_("Choose another partition") : N_("Choose a partition");
my $parts_and_holes = [ fsedit::get_all_fstab_and_holes($all_hds) ];
my $choose_part = sub {
- $current_part = $in->ask_from_listf('diskdrake', translate($choose_txt), sub { format_part_info_short(fsedit::part2hd($_[0], $all_hds), $_[0]) }, $parts_and_holes, $current_part) || return;
+ $current_part = $in->ask_from_listf('diskdrake', translate($choose_txt),
+ sub {
+ my $hd = fsedit::part2hd($_[0] || return, $all_hds);
+ format_part_info_short($hd, $_[0]);
+ }, $parts_and_holes, $current_part) || return;
$current_hd = fsedit::part2hd($current_part, $all_hds);
};