diff options
Diffstat (limited to 'urpm/install.pm')
-rw-r--r-- | urpm/install.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/install.pm b/urpm/install.pm index b970d93c..a6478b11 100644 --- a/urpm/install.pm +++ b/urpm/install.pm @@ -298,9 +298,9 @@ sub _get_callbacks { } }; - $options->{callback_uninst} = $options->{verbose} >= 0 ? \&install_logger : $erase_logger; + $options->{callback_uninst} ||= $options->{verbose} >= 0 ? \&install_logger : $erase_logger; - $options->{callback_error} = sub { + $options->{callback_error} ||= sub { my ($urpm, undef, $id, $subtype) = @_; my $n = $urpm->{depslist}[$id]->fullname; $urpm->{error}("ERROR: '$subtype' failed for $n: "); |