summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rwxr-xr-xgurpmi25
2 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index cb350b97..24d8ac62 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- gurpmi
+ o display all urpmi logs
- urpmi.addmedia
o do not allow "/" in media name (#44765)
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);