diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | urpm/install.pm | 6 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,4 @@ +- add basic support for detecting I/O error - display erasure progress too Version 7.15.2 - 16 January 2013, by Thierry Vignaud diff --git a/urpm/install.pm b/urpm/install.pm index 2670cf3c..9adc10da 100644 --- a/urpm/install.pm +++ b/urpm/install.pm @@ -309,6 +309,12 @@ sub _get_callbacks { } }; + $options->{callback_error} = sub { + my ($urpm, undef, $id, $subtype) = @_; + my $n = $urpm->{depslist}[$id]->fullname; + $urpm->{error}("ERROR: '$subtype' failed for $n: "); + }; + if ($options->{verbose} >= 0 && $have_pkgs) { $options->{callback_inst} ||= \&install_logger; $options->{callback_trans} ||= \&install_logger; |