aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-08-23 08:58:22 +0000
committerThierry Vignaud <tv@mandriva.org>2006-08-23 08:58:22 +0000
commit20316a65e54edf982a6d9967ad97eef35055f45b (patch)
treef80bf086b18087875dbc9281b312532b06ad1771
parentcce3aceebfe9f2f51de86b58067356526196004a (diff)
downloadrpmdrake-20316a65e54edf982a6d9967ad97eef35055f45b.tar
rpmdrake-20316a65e54edf982a6d9967ad97eef35055f45b.tar.gz
rpmdrake-20316a65e54edf982a6d9967ad97eef35055f45b.tar.bz2
rpmdrake-20316a65e54edf982a6d9967ad97eef35055f45b.tar.xz
rpmdrake-20316a65e54edf982a6d9967ad97eef35055f45b.zip
(run_treeview_dialog) be more user-friendly by sorting packages by name
-rwxr-xr-xrpmdrake1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpmdrake b/rpmdrake
index cc7eafd9..d17e24b1 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -669,6 +669,7 @@ sub run_treeview_dialog {
}
}
my $callback = sub { interactive_msg_(N("More information on package..."), $options->{get_info}->($_[0]), scroll => 1) };
+ $choices = [ sort { $a->name cmp $b->name } @$choices ];
my @choices = interactive_list_(N("Please choose"), N("One of the following packages is needed:"),
[ map { my_fullname($_) } @$choices ], $callback);
$choices->[@choices];