summaryrefslogtreecommitdiffstats
path: root/perl-install/install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-03-04 15:56:17 +0000
committerThierry Vignaud <tv@mandriva.org>2009-03-04 15:56:17 +0000
commitce0442c03906c3280e0efbc56d247012a6316ae9 (patch)
tree3f7955b60df9b26321be5cfa0b339f86b390867f /perl-install/install
parente99f1dd76f6cddbde6d26bae4fcf7ee65761b698 (diff)
downloaddrakx-ce0442c03906c3280e0efbc56d247012a6316ae9.tar
drakx-ce0442c03906c3280e0efbc56d247012a6316ae9.tar.gz
drakx-ce0442c03906c3280e0efbc56d247012a6316ae9.tar.bz2
drakx-ce0442c03906c3280e0efbc56d247012a6316ae9.tar.xz
drakx-ce0442c03906c3280e0efbc56d247012a6316ae9.zip
(empty_packages) log urpmi errors in 'fatal' & 'error' subs
Diffstat (limited to 'perl-install/install')
-rw-r--r--perl-install/install/pkgs.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm
index 88cc09633..7d2fcefa3 100644
--- a/perl-install/install/pkgs.pm
+++ b/perl-install/install/pkgs.pm
@@ -308,7 +308,10 @@ sub empty_packages {
urpm::args::set_debug($packages) if $::o->{debug_urpmi};
$packages->{log} = \&log::l;
$packages->{info} = \&log::l;
- $packages->{fatal} = $packages->{error} = sub { $::o->ask_warn(undef, $_[0]) };
+ $packages->{fatal} = $packages->{error} = sub {
+ log::l("urpmi error: $_[0]");
+ $::o->ask_warn(undef, $_[0]);
+ };
$packages->{root} = $::prefix;
$packages->{prefer_vendor_list} = '/etc/urpmi/prefer.vendor.list';
$packages->{keep_unrequested_dependencies} =