aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-26 11:13:44 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-26 11:13:44 +0000
commit29e40c6dcfa6d2713fc53e54bc763c13477cb82e (patch)
tree675c3c043b230e57db170a30389373db8b123013
parent484d6328e7afb9435290fab05b51eb8917c903e1 (diff)
downloadrpmdrake-29e40c6dcfa6d2713fc53e54bc763c13477cb82e.tar
rpmdrake-29e40c6dcfa6d2713fc53e54bc763c13477cb82e.tar.gz
rpmdrake-29e40c6dcfa6d2713fc53e54bc763c13477cb82e.tar.bz2
rpmdrake-29e40c6dcfa6d2713fc53e54bc763c13477cb82e.tar.xz
rpmdrake-29e40c6dcfa6d2713fc53e54bc763c13477cb82e.zip
(perform_removal) display which package is beging removed
-rwxr-xr-xRpmdrake/pkg.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 5f1b1eeb..1614bac9 100755
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -803,6 +803,14 @@ sub perform_removal {
Rpmdrake::gurpm::init(1 ? N("Please wait") : N("Please wait, removing packages..."), N("Initializing..."), transient => $::main_window);
my $_a = before_leaving { Rpmdrake::gurpm::end() };
+ my $logger = $urpm->{log};
+ local $urpm->{log} = sub {
+ my $str = $_[0];
+ print $str;
+ Rpmdrake::gurpm::label($str); # display "removing package %s"
+ gtkflush();
+ };
+
my @results;
slow_func_statusbar(
N("Please wait, removing packages..."),