diff options
Diffstat (limited to 'gurpmi2')
-rwxr-xr-x | gurpmi2 | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -127,12 +127,15 @@ sub configure_urpm() { } $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) { @@ -319,6 +322,8 @@ sub do_install_3 () { trans_log => sub { my ($mode, $file, $percent, $total, $eta, $speed) = @_; + urpm::download::sync_logger(@_); + if (member($mode, 'start', 'progress')) { $file =~ s|/*\s*$||; $file =~ s|.*/||; $progress_label->set_label(N("Downloading package `%s'...", $file) . "\n" . &urpm::download::progress_text); |