aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-03-26 10:20:58 +0000
committerThierry Vignaud <tv@mandriva.org>2009-03-26 10:20:58 +0000
commitcddda6e73c8e813016abd6eae413c99d4eafaaf0 (patch)
tree7b2f1c90f3d8d8848c92253a3427cac1ae53a3ea
parent3b22f0d76134274a7d9f5500fe811a4044d71ef9 (diff)
downloadrpmdrake-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
-rwxr-xr-xgurpmi.addmedia9
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);