From 905062480d41547b7a47c347c397f36dbc00a93c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sat, 9 Dec 2000 18:55:01 +0000 Subject: (formatMountPartitions): the format partition dialog created at first use, so that it doesn't appear if no partitions are formatted. --- perl-install/install_steps_interactive.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm index a2faedac9..ea6d9826b 100644 --- a/perl-install/install_steps_interactive.pm +++ b/perl-install/install_steps_interactive.pm @@ -196,7 +196,7 @@ sub selectInstallClass { _("Expert") => "expert", ), ); - %s = @c = (_("Expert") => "expert") if $::expert && !$clicked; + %c = @c = (_("Expert") => "expert") if $::expert && !$clicked; $o->set_help('selectInstallClassCorpo') if $::corporate; @@ -395,9 +395,10 @@ sub choosePartitionsToFormat($$) { sub formatMountPartitions { my ($o, $fstab) = @_; - my $w = $o->wait_message('', _("Formatting partitions")); + my $w; fs::formatMount_all($o->{raid}, $o->{fstab}, $o->{prefix}, sub { my ($part) = @_; + $w ||= $o->wait_message('', _("Formatting partitions")); $w->set(isLoopback($part) ? _("Creating and formatting file %s", loopback::file($part)) : _("Formatting partition %s", $part->{device})); -- cgit v1.2.1