diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-10-15 16:22:39 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-10-15 16:22:39 +0000 |
commit | 65fbae437d5becad2929e75db6cf340a3a5a3477 (patch) | |
tree | a013cedda2f8dc854daa46dbcbaaa01fe54e9930 /gurpmi2 | |
parent | 5b3396abbeab1313a23db447d2619f001596f093 (diff) | |
download | urpmi-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
Diffstat (limited to 'gurpmi2')
-rwxr-xr-x | gurpmi2 | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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)); |