summaryrefslogtreecommitdiffstats
path: root/urpmi
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-12 12:15:01 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-12 12:15:01 +0000
commit98fe1b85f7c0a613343e0def29cc531f7e4d68dd (patch)
treea661e1383343358b23f4067a03a4e4bc6badc623 /urpmi
parent12eb101d85191fda6654d4ed804f01df78fa6e52 (diff)
downloadurpmi-98fe1b85f7c0a613343e0def29cc531f7e4d68dd.tar
urpmi-98fe1b85f7c0a613343e0def29cc531f7e4d68dd.tar.gz
urpmi-98fe1b85f7c0a613343e0def29cc531f7e4d68dd.tar.bz2
urpmi-98fe1b85f7c0a613343e0def29cc531f7e4d68dd.tar.xz
urpmi-98fe1b85f7c0a613343e0def29cc531f7e4d68dd.zip
- library
o urpm::select: new function get_preferred() replacing sort_choices() (for drakx) o get rid of "use of unitialized" when file is unset (for drakx)
Diffstat (limited to 'urpmi')
-rwxr-xr-xurpmi3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpmi b/urpmi
index 30a42358..cbbfc663 100755
--- a/urpmi
+++ b/urpmi
@@ -429,7 +429,8 @@ if (@src_names) {
sub ask_choice {
my ($urpm, $_db, $_state, $choices, $virtual_pkg_name) = @_;
- my @choices = urpm::select::sort_choices($urpm, $choices, $options{prefer});
+ my ($prefer, $other) = urpm::select::get_preferred($urpm, $choices, $options{prefer});
+ my @choices = (@$prefer, @$other);
my (@l) = map {
my ($name, $summary) = (scalar($_->fullname), translate($_->summary));