aboutsummaryrefslogtreecommitdiffstats
path: root/URPM
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-10 16:56:01 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-10 16:56:01 +0000
commitcc24fd23a0ee3dbcc0fda2331fd01a36f1d8323c (patch)
tree8fb578da674020c21f8c1d9f02c4d7da89d3e1af /URPM
parentc5f798be2fa0056bc38f1a60dd98a3d5a8334fb0 (diff)
downloadperl-URPM-cc24fd23a0ee3dbcc0fda2331fd01a36f1d8323c.tar
perl-URPM-cc24fd23a0ee3dbcc0fda2331fd01a36f1d8323c.tar.gz
perl-URPM-cc24fd23a0ee3dbcc0fda2331fd01a36f1d8323c.tar.bz2
perl-URPM-cc24fd23a0ee3dbcc0fda2331fd01a36f1d8323c.tar.xz
perl-URPM-cc24fd23a0ee3dbcc0fda2331fd01a36f1d8323c.zip
rename find_chosen_packages() into find_required_package()
(better name)
Diffstat (limited to 'URPM')
-rw-r--r--URPM/Resolve.pm11
1 files changed, 7 insertions, 4 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index 0c16260..e4e6a6b 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -82,7 +82,10 @@ sub get_installed_arch {
$arch;
}
-sub find_chosen_packages {
+# deprecated function name
+sub find_chosen_packages { &find_required_package }
+
+sub find_required_package {
my ($urpm, $db, $state, $id_prop) = @_;
my %packages;
my %installed_arch;
@@ -147,13 +150,13 @@ sub find_chosen_packages {
_set_flag_installed_and_upgrade_if_no_newer($db, $p);
}
- _find_chosen_packages__sort($urpm, $db, \%packages);
+ _find_required_package__sort($urpm, $db, \%packages);
} else {
[ values(%packages) ];
}
}
-sub _find_chosen_packages__sort {
+sub _find_required_package__sort {
my ($urpm, $db, $packages) = @_;
my ($best, @other) = sort {
@@ -602,7 +605,7 @@ sub resolve_requested__no_suggests {
}
#- take the best choice possible.
- my ($chosen, $prefered) = find_chosen_packages($urpm, $db, $state, $dep->{required});
+ my ($chosen, $prefered) = find_required_package($urpm, $db, $state, $dep->{required});
#- If no choice is found, this means that nothing can be possibly selected
#- according to $dep, so we need to retry the selection, allowing all