summaryrefslogtreecommitdiffstats
path: root/gurpmi2
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-15 16:21:56 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-15 16:21:56 +0000
commit9543445477fb627aea85d3ba8a2091c30505bab9 (patch)
tree741802a4f2fc13f2832e2297ee9a4d4872153a28 /gurpmi2
parentc5ca0a5b7b4d40f38fd705df005fa95a9d80b119 (diff)
downloadurpmi-9543445477fb627aea85d3ba8a2091c30505bab9.tar
urpmi-9543445477fb627aea85d3ba8a2091c30505bab9.tar.gz
urpmi-9543445477fb627aea85d3ba8a2091c30505bab9.tar.bz2
urpmi-9543445477fb627aea85d3ba8a2091c30505bab9.tar.xz
urpmi-9543445477fb627aea85d3ba8a2091c30505bab9.zip
(configure_urpm,do_install_3) display all urpmi logs
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);