summaryrefslogtreecommitdiffstats
path: root/gurpmi2
diff options
context:
space:
mode:
Diffstat (limited to 'gurpmi2')
-rwxr-xr-xgurpmi25
1 files changed, 5 insertions, 0 deletions
diff --git a/gurpmi2 b/gurpmi2
index b386db4e..9e6a9acd 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -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);