summaryrefslogtreecommitdiffstats
path: root/perl-install/install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-03-04 15:53:55 +0000
committerThierry Vignaud <tv@mandriva.org>2009-03-04 15:53:55 +0000
commite99f1dd76f6cddbde6d26bae4fcf7ee65761b698 (patch)
tree12aae0e0851704633e29c91217fd4883fedbb322 /perl-install/install
parentc89dd6ea668acd3c752a540b275c80ca024aa9b6 (diff)
downloaddrakx-e99f1dd76f6cddbde6d26bae4fcf7ee65761b698.tar
drakx-e99f1dd76f6cddbde6d26bae4fcf7ee65761b698.tar.gz
drakx-e99f1dd76f6cddbde6d26bae4fcf7ee65761b698.tar.bz2
drakx-e99f1dd76f6cddbde6d26bae4fcf7ee65761b698.tar.xz
drakx-e99f1dd76f6cddbde6d26bae4fcf7ee65761b698.zip
(empty_packages) factorize settings fatal and error subs
Diffstat (limited to 'perl-install/install')
-rw-r--r--perl-install/install/pkgs.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm
index f0a120564..88cc09633 100644
--- a/perl-install/install/pkgs.pm
+++ b/perl-install/install/pkgs.pm
@@ -308,8 +308,7 @@ sub empty_packages {
urpm::args::set_debug($packages) if $::o->{debug_urpmi};
$packages->{log} = \&log::l;
$packages->{info} = \&log::l;
- $packages->{error} = sub { $::o->ask_warn(undef, $_[0]) };
- $packages->{fatal} = sub { $::o->ask_warn(undef, $_[0]) };
+ $packages->{fatal} = $packages->{error} = sub { $::o->ask_warn(undef, $_[0]) };
$packages->{root} = $::prefix;
$packages->{prefer_vendor_list} = '/etc/urpmi/prefer.vendor.list';
$packages->{keep_unrequested_dependencies} =