summaryrefslogtreecommitdiffstats
path: root/perl-install/install/pkgs.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-03-06 15:36:12 +0000
committerThierry Vignaud <tv@mandriva.org>2009-03-06 15:36:12 +0000
commitbb650cf4b6286d2a6028ee9a4703bbf5617e3c81 (patch)
tree26517cd5277cdb0e4b541d48166034bd43c714b9 /perl-install/install/pkgs.pm
parent735f8a67a20ee17c42bdfe0c3b349446ba07221b (diff)
downloaddrakx-backup-do-not-use-bb650cf4b6286d2a6028ee9a4703bbf5617e3c81.tar
drakx-backup-do-not-use-bb650cf4b6286d2a6028ee9a4703bbf5617e3c81.tar.gz
drakx-backup-do-not-use-bb650cf4b6286d2a6028ee9a4703bbf5617e3c81.tar.bz2
drakx-backup-do-not-use-bb650cf4b6286d2a6028ee9a4703bbf5617e3c81.tar.xz
drakx-backup-do-not-use-bb650cf4b6286d2a6028ee9a4703bbf5617e3c81.zip
(empty_packages) display nicer messages for urpmi's errors
Diffstat (limited to 'perl-install/install/pkgs.pm')
-rw-r--r--perl-install/install/pkgs.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm
index a1fb298d6..fa31c2094 100644
--- a/perl-install/install/pkgs.pm
+++ b/perl-install/install/pkgs.pm
@@ -310,7 +310,7 @@ sub empty_packages {
$packages->{info} = \&log::l;
$packages->{fatal} = $packages->{error} = sub {
log::l("urpmi error: $_[0]");
- $::o->ask_warn(undef, $_[0]);
+ $::o->ask_warn(undef, N("An error occurred:") . "\n\n" . $_[0]);
};
$packages->{root} = $::prefix;
$packages->{prefer_vendor_list} = '/etc/urpmi/prefer.vendor.list';