summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-11-29 11:47:28 +0000
committerThierry Vignaud <tv@mandriva.org>2006-11-29 11:47:28 +0000
commita55d10bd9f560e41821931cf6031280d64283d32 (patch)
treef96a7e59f45ea10b0697fafbf6246e9a1a9d0bc2
parent71a0dbce6f66d7290ea11d6cc0febd6f516437c3 (diff)
downloadurpmi-a55d10bd9f560e41821931cf6031280d64283d32.tar
urpmi-a55d10bd9f560e41821931cf6031280d64283d32.tar.gz
urpmi-a55d10bd9f560e41821931cf6031280d64283d32.tar.bz2
urpmi-a55d10bd9f560e41821931cf6031280d64283d32.tar.xz
urpmi-a55d10bd9f560e41821931cf6031280d64283d32.zip
(ask_choice) simplify
-rwxr-xr-xurpmi3
1 files changed, 1 insertions, 2 deletions
diff --git a/urpmi b/urpmi
index e5590725..421cc72d 100755
--- a/urpmi
+++ b/urpmi
@@ -431,8 +431,7 @@ sub ask_choice {
my ($urpm, $_db, $_state, $choices) = @_;
my $n = 1; #- default value.
my (@l) = map {
- (scalar $_->fullname)
- . ($_->summary ? ': ' . $_->summary : '')
+ join(': ', scalar($_->fullname), ($_->summary || ()))
. ($_->flag_installed ? ' (to upgrade)' : '')
. ($_->flag_upgrade ? ' (to install)' : '');
} @$choices;