diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-02-20 19:34:55 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-02-20 19:34:55 +0000 |
commit | 662a5c39e020c053151a4974427cfff64166c111 (patch) | |
tree | db10c56b79b004e63473437509e9d323394ef7c1 | |
parent | 19f5efa2b0c3cc95fe7348d56391eec57201425d (diff) | |
download | drakx-662a5c39e020c053151a4974427cfff64166c111.tar drakx-662a5c39e020c053151a4974427cfff64166c111.tar.gz drakx-662a5c39e020c053151a4974427cfff64166c111.tar.bz2 drakx-662a5c39e020c053151a4974427cfff64166c111.tar.xz drakx-662a5c39e020c053151a4974427cfff64166c111.zip |
oops i didn't understand the internals of wait_message hence breaking it. hopes that will fix.
-rw-r--r-- | perl-install/install_steps_interactive.pm | 8 | ||||
-rw-r--r-- | perl-install/interactive.pm | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm index 49641703a..db7351ca3 100644 --- a/perl-install/install_steps_interactive.pm +++ b/perl-install/install_steps_interactive.pm @@ -340,7 +340,7 @@ sub formatMountPartitions { fs::formatMount_all($o->{all_hds}{raids}, $o->{fstab}, $o->{prefix}, sub { my ($msg) = @_; $w ||= $o->wait_message('', $msg); - $w->set_label($msg); + $w->set($msg); }); } sub { $@ =~ /fsck failed on (\S+)/ or return; @@ -358,11 +358,11 @@ sub setPackages { N("Looking for available packages...")); install_any::setPackages($o, $rebuild_needed); - $w->set_label(N("Looking at packages already installed...")); + $w->set(N("Looking at packages already installed...")); pkgs::selectPackagesAlreadyInstalled($o->{packages}, $o->{prefix}); if ($rebuild_needed) { - $w->set_label(N("Finding packages to upgrade...")); + $w->set(N("Finding packages to upgrade...")); pkgs::selectPackagesToUpgrade($o->{packages}, $o->{prefix}); } } @@ -658,7 +658,7 @@ sub installPackages { $total = $total_; } elsif ($type eq 'inst' && $subtype eq 'start') { my $p = $data->{depslist}[$id]; - $w->set_label(N("Installing package %s\n%d%%", $p->name, $total && 100 * $current / $total)); + $w->set(N("Installing package %s\n%d%%", $p->name, $total && 100 * $current / $total)); $current += $p->size; } else { goto $old } }; diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index 503269535..b06ebdee2 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -437,8 +437,8 @@ sub wait_message { push @tempory::objects, $w if $temp; my $b = before_leaving { $o->wait_message_endW($w) }; - #- enable access through set_label - MDK::Common::Func::add_f4before_leaving(sub { $o->wait_message_nextW([ deref($_[1]) ], $w) }, $b, 'set_label'); + #- enable access through set + MDK::Common::Func::add_f4before_leaving(sub { $o->wait_message_nextW([ deref($_[1]) ], $w) }, $b, 'set'); $b; } |