summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake/interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-01-06 10:13:04 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-01-06 10:13:04 +0000
commitd5e86a6fc9952b1eea07d5c14dc743fde7692d45 (patch)
treeae270820de5332ff8d24f3dc85c81a454f4c2f43 /perl-install/diskdrake/interactive.pm
parent0d5a1b01a3a92b910347fbbba77ef0b1e18ac3c5 (diff)
downloaddrakx-d5e86a6fc9952b1eea07d5c14dc743fde7692d45.tar
drakx-d5e86a6fc9952b1eea07d5c14dc743fde7692d45.tar.gz
drakx-d5e86a6fc9952b1eea07d5c14dc743fde7692d45.tar.bz2
drakx-d5e86a6fc9952b1eea07d5c14dc743fde7692d45.tar.xz
drakx-d5e86a6fc9952b1eea07d5c14dc743fde7692d45.zip
- fs::format::part_raw() now takes $wait_message to allow displaying the progress of format
- create fs::format::wait_message() which creates a $wait_message valid to give to fs::format::part - fs::format::mke2fs() format while parsing the output to display the progress
Diffstat (limited to 'perl-install/diskdrake/interactive.pm')
-rw-r--r--perl-install/diskdrake/interactive.pm8
1 files changed, 2 insertions, 6 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index be261c940..97118f376 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -1080,12 +1080,8 @@ sub format_ {
fs::format::check_package_is_installed($in->do_pkgs, $part->{fs_type}) or return;
}
$part->{isFormatted} = 0; #- force format;
- my $w;
- fs::format::part($all_hds->{raids}, $part, $::prefix, sub {
- my ($msg) = @_;
- $w ||= $in->wait_message('', $msg);
- $w->set($msg);
- });
+ my ($_w, $wait_message) = fs::format::wait_message($in);
+ fs::format::part($all_hds->{raids}, $part, $::prefix, $wait_message);
1;
}