summaryrefslogtreecommitdiffstats
path: root/urpm/select.pm
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 /urpm/select.pm
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 'urpm/select.pm')
-rw-r--r--urpm/select.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/select.pm b/urpm/select.pm
index 978f88bb..cc96d9d5 100644
--- a/urpm/select.pm
+++ b/urpm/select.pm
@@ -262,7 +262,7 @@ sub cooked_prefer {
@{$urpm->{prefer_regexps}};
}
-sub sort_choices {
+sub get_preferred {
my ($urpm, $choices, $cmdline_prefer) = @_;
my @prefer;
@@ -278,7 +278,7 @@ sub sort_choices {
$urpm->{log}("preferring $prefer_s over $other_s");
}
}
- (@prefer, @l);
+ (\@prefer, \@l);
}
#- find packages to remove.