diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-03-26 10:20:58 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-03-26 10:20:58 +0000 |
commit | cddda6e73c8e813016abd6eae413c99d4eafaaf0 (patch) | |
tree | 7b2f1c90f3d8d8848c92253a3427cac1ae53a3ea /gurpmi.addmedia | |
parent | 3b22f0d76134274a7d9f5500fe811a4044d71ef9 (diff) | |
download | rpmdrake-cddda6e73c8e813016abd6eae413c99d4eafaaf0.tar rpmdrake-cddda6e73c8e813016abd6eae413c99d4eafaaf0.tar.gz rpmdrake-cddda6e73c8e813016abd6eae413c99d4eafaaf0.tar.bz2 rpmdrake-cddda6e73c8e813016abd6eae413c99d4eafaaf0.tar.xz rpmdrake-cddda6e73c8e813016abd6eae413c99d4eafaaf0.zip |
extract message so that the code is clearer
Diffstat (limited to 'gurpmi.addmedia')
-rwxr-xr-x | gurpmi.addmedia | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gurpmi.addmedia b/gurpmi.addmedia index faebe3d2..f2f3faef 100755 --- a/gurpmi.addmedia +++ b/gurpmi.addmedia @@ -144,12 +144,11 @@ foreach (@addmedia_args) { ); } if ($success) { - interactive_msg( - 'gurpmi.addmedia', - @names > 1 + my $message = + @names > 1 ? N("Successfully added media %s.", join ", ", @names) - : N("Successfully added medium `%s'.", $names[0]) - ) if !$silent_success; + : N("Successfully added medium `%s'.", $names[0]); + interactive_msg('gurpmi.addmedia', $message) if !$silent_success; myexit(0); } else { myexit(-1); |