aboutsummaryrefslogtreecommitdiffstats
path: root/gurpmi.addmedia
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 /gurpmi.addmedia
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)
Diffstat (limited to 'gurpmi.addmedia')
-rwxr-xr-xgurpmi.addmedia3
1 files changed, 2 insertions, 1 deletions
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;