summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps_interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-09-09 09:02:29 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-09-09 09:02:29 +0000
commit4653f224b5349f1df241c4ec384e726786a29620 (patch)
tree581dfc34aac40f02d19a400f66125d8f5e9be44e /perl-install/install_steps_interactive.pm
parent196b211d3e14d051bad51e09e031b4568708504a (diff)
downloaddrakx-4653f224b5349f1df241c4ec384e726786a29620.tar
drakx-4653f224b5349f1df241c4ec384e726786a29620.tar.gz
drakx-4653f224b5349f1df241c4ec384e726786a29620.tar.bz2
drakx-4653f224b5349f1df241c4ec384e726786a29620.tar.xz
drakx-4653f224b5349f1df241c4ec384e726786a29620.zip
pass around wait_message with progress bar capability
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r--perl-install/install_steps_interactive.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index ea2e9d929..0b56615ea 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -401,9 +401,13 @@ sub formatMountPartitions {
sub setPackages {
my ($o) = @_;
- my $w = $o->wait_message('', $o->{isUpgrade} ? N("Looking for available packages and rebuilding rpm database...") :
- N("Looking for available packages..."));
- install_any::setPackages($o, sub { $w->set(@_) });
+ my ($w, $wait_message) = $o->wait_message_with_progress_bar;
+
+ $wait_message->($o->{isUpgrade} ? N("Looking for available packages and rebuilding rpm database...") :
+ N("Looking for available packages..."));
+ install_any::setPackages($o, $wait_message);
+
+ undef $w; #- help perl
}
sub mirror2text { $crypto::mirrors{$_[0]} ? $crypto::mirrors{$_[0]}[0] . '|' . $_[0] : "-|URL" }