summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-05-09 02:41:57 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-05-09 02:41:57 +0000
commitcb3586c3db76b6c2495ea7133d0f8b9611299485 (patch)
tree1a4223d83c2c9c6bc35398bbf3e9b755e73a8a1b
parent4477ab276f46a8691b5c13f3024ff8400f250a4a (diff)
downloadurpmi-cb3586c3db76b6c2495ea7133d0f8b9611299485.tar
urpmi-cb3586c3db76b6c2495ea7133d0f8b9611299485.tar.gz
urpmi-cb3586c3db76b6c2495ea7133d0f8b9611299485.tar.bz2
urpmi-cb3586c3db76b6c2495ea7133d0f8b9611299485.tar.xz
urpmi-cb3586c3db76b6c2495ea7133d0f8b9611299485.zip
Add descriptions to the list of rpms to be installed in gurpmi
(bug 15496)
-rw-r--r--gurpmi8
1 files changed, 6 insertions, 2 deletions
diff --git a/gurpmi b/gurpmi
index afcf8aef..66140279 100644
--- a/gurpmi
+++ b/gurpmi
@@ -35,6 +35,10 @@ $mainw->set_modal(0);
$mainbox = Gtk2::VBox->new(0, 5);
$mainw->add($mainbox);
+sub all_descriptions {
+ join '', qx(rpm -qp --qf '%{name}-%{version}-%{release}: %{summary}\\n' @_);
+}
+
#- Ask question: save or install ?
#- change depending on the number of rpms, and on the presence of srpms
($srpms, $rpms) = partition { /\.src\.rpm$/ } @all_rpms;
@@ -53,12 +57,12 @@ What would you like to do?", $srpms->[0])
%s
-You may prefer to just save it. What is your choice?", $rpms->[0])
+You may prefer to just save it. What is your choice?", all_descriptions($rpms->[0]))
: N("You are about to install the following software packages on your computer:
%s
-Proceed?", join "\n", @all_rpms)
+Proceed?", all_descriptions(@all_rpms))
);
$mainbox->pack_start(new_label($msg), 1, 1, 0);
}