summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-08-09 00:01:16 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-08-09 00:01:16 +0000
commit38a847e993a0c34d479cd1bc9b07775ccbb84c31 (patch)
tree7e2c06384bc550290039589d2d8cc742e7671046
parent7b4f5f765362bfa7cddbea9817a5bab58c8d9c4f (diff)
downloadurpmi-38a847e993a0c34d479cd1bc9b07775ccbb84c31.tar
urpmi-38a847e993a0c34d479cd1bc9b07775ccbb84c31.tar.gz
urpmi-38a847e993a0c34d479cd1bc9b07775ccbb84c31.tar.bz2
urpmi-38a847e993a0c34d479cd1bc9b07775ccbb84c31.tar.xz
urpmi-38a847e993a0c34d479cd1bc9b07775ccbb84c31.zip
When urpmi asks to choose between several packages, help the user by
displaying their summaries (patch from Michael Scherer)
-rwxr-xr-xurpmi1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpmi b/urpmi
index 0fb0f121..37041910 100755
--- a/urpmi
+++ b/urpmi
@@ -392,6 +392,7 @@ sub ask_choice {
my $n = 1; #- default value.
my (@l) = map {
(scalar $_->fullname)
+ . ($_->summary ? ' : ' . $_->summary : '')
. ($_->flag_installed ? ' (to upgrade)' : '')
. ($_->flag_upgrade ? ' (to install)' : '')
} @$choices;