summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-15 16:22:39 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-15 16:22:39 +0000
commit65fbae437d5becad2929e75db6cf340a3a5a3477 (patch)
treea013cedda2f8dc854daa46dbcbaaa01fe54e9930
parent5b3396abbeab1313a23db447d2619f001596f093 (diff)
downloadurpmi-65fbae437d5becad2929e75db6cf340a3a5a3477.tar
urpmi-65fbae437d5becad2929e75db6cf340a3a5a3477.tar.gz
urpmi-65fbae437d5becad2929e75db6cf340a3a5a3477.tar.bz2
urpmi-65fbae437d5becad2929e75db6cf340a3a5a3477.tar.xz
urpmi-65fbae437d5becad2929e75db6cf340a3a5a3477.zip
(configure_urpm,do_install_3) display all urpmi logs
-rw-r--r--NEWS3
-rwxr-xr-xgurpmi24
2 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 46e01de8..81a80003 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- gurpmi
+ o display all urpmi logs
+
Version 5.19.8 - 14 October 2008
- library:
diff --git a/gurpmi2 b/gurpmi2
index fc7626ed..d1bb60b9 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -114,12 +114,15 @@ sub configure_urpm() {
my $urpm = urpm->new;
$urpm->get_global_options;
$urpm->{fatal} = sub {
+ printf STDERR "%s\n", $_[1];
Gtk2::MessageDialog->new($mainw, [qw(modal destroy-with-parent)], 'error', 'ok', Locale::gettext::iconv($_[1], undef, 'UTF-8'))->run;
quit();
exit $_[0];
};
+ $urpm->{log} = sub { printf "%s\n", $_[0] };
$urpm->{error} = sub {
my ($message) = @_;
+ printf STDERR "%s\n", $message;
my $nb_lines = $message =~ tr/\n/\n/;
my $w;
if ($nb_lines > 30) {
@@ -284,6 +287,7 @@ sub do_install_3 () {
},
trans_log => sub {
my ($mode, $file, $percent) = @_;
+ urpm::download::sync_logger(@_);
if ($mode eq 'start') {
$file =~ s|/*\s*$||; $file =~ s|.*/||;
$progress_label->set_label(N("Downloading package `%s'...", $file));