aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-03-26 10:29:06 +0000
committerThierry Vignaud <tv@mandriva.org>2009-03-26 10:29:06 +0000
commite6f0de14b44c96ace218f4ffd5977ff07831f7ec (patch)
tree3eae63b73eec82cd000ba6e8e489a3a0d71ae3f3
parentcddda6e73c8e813016abd6eae413c99d4eafaaf0 (diff)
downloadrpmdrake-e6f0de14b44c96ace218f4ffd5977ff07831f7ec.tar
rpmdrake-e6f0de14b44c96ace218f4ffd5977ff07831f7ec.tar.gz
rpmdrake-e6f0de14b44c96ace218f4ffd5977ff07831f7ec.tar.bz2
rpmdrake-e6f0de14b44c96ace218f4ffd5977ff07831f7ec.tar.xz
rpmdrake-e6f0de14b44c96ace218f4ffd5977ff07831f7ec.zip
fix success message when adding mirrorlist (#48660)
-rw-r--r--NEWS3
-rwxr-xr-xgurpmi.addmedia3
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index eb669379..7f2f9c18 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- gurpmi.addmedia:
+ o fix success message when adding mirrorlist (#48660)
+
Version 5.13 - 25 March 2009, Thierry Vignaud
- rpmdrake:
diff --git a/gurpmi.addmedia b/gurpmi.addmedia
index f2f3faef..232d7967 100755
--- a/gurpmi.addmedia
+++ b/gurpmi.addmedia
@@ -145,7 +145,8 @@ foreach (@addmedia_args) {
}
if ($success) {
my $message =
- @names > 1
+ $distrib ? N("Successfully added media.")
+ : @names > 1
? N("Successfully added media %s.", join ", ", @names)
: N("Successfully added medium `%s'.", $names[0]);
interactive_msg('gurpmi.addmedia', $message) if !$silent_success;