summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-10-28 14:57:43 +0000
committerOlivier Blin <oblin@mandriva.com>2009-10-28 14:57:43 +0000
commit4406b05f7ae0ee25469d7830e8258cdc2b578ba6 (patch)
treeb2012bdcd4dee13b5ffd3202866a929788e31210 /perl-install
parent3098163a005cd20c01c7569204d4ed43a71b1511 (diff)
downloaddrakx-4406b05f7ae0ee25469d7830e8258cdc2b578ba6.tar
drakx-4406b05f7ae0ee25469d7830e8258cdc2b578ba6.tar.gz
drakx-4406b05f7ae0ee25469d7830e8258cdc2b578ba6.tar.bz2
drakx-4406b05f7ae0ee25469d7830e8258cdc2b578ba6.tar.xz
drakx-4406b05f7ae0ee25469d7830e8258cdc2b578ba6.zip
move default size in part req_size
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/fs/partitioning_wizard.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm
index 1cc474f79..aa8c85d95 100644
--- a/perl-install/fs/partitioning_wizard.pm
+++ b/perl-install/fs/partitioning_wizard.pm
@@ -144,6 +144,7 @@ sub partitionWizardSolutions {
$part->{resize_fat} = $resize_fat;
$part->{min_win} = $min_win;
$part->{min_linux} = $min_linux_all;
+ $part->{req_size} = $part->{size};
}
}
}
@@ -179,7 +180,7 @@ When sure, press %s.", N("Next")))) or return;
my $oldsize = $part->{size};
if (!$in->isa('interactive::gtk')) {
- my $mb_size = to_Mb($part->{size});
+ my $mb_size = to_Mb($part->{req_size});
my $max_win = $part->{size} - $part->{min_linux};
$in->ask_from(N("Partitionning"), N("Which size do you want to keep for Microsoft Windows® on partition %s?", partition_table::description($part)), [
{ label => N("Size"), val => \$mb_size, min => to_Mb($part->{min_win}), max => to_Mb($max_win), type => 'range' },