summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-04 14:41:53 +0000
committerThierry Vignaud <tv@mageia.org>2012-10-04 14:41:53 +0000
commit8b025f172f54dc3bdffd86e3f64ebca435d0dcf0 (patch)
tree87f72c84420f721191f5871a90a4b9d2aa25c43b /urpm.pm
parentf2be43ab69e87c9c3ded8db93ab3b499acf04dfb (diff)
downloadurpmi-8b025f172f54dc3bdffd86e3f64ebca435d0dcf0.tar
urpmi-8b025f172f54dc3bdffd86e3f64ebca435d0dcf0.tar.gz
urpmi-8b025f172f54dc3bdffd86e3f64ebca435d0dcf0.tar.bz2
urpmi-8b025f172f54dc3bdffd86e3f64ebca435d0dcf0.tar.xz
urpmi-8b025f172f54dc3bdffd86e3f64ebca435d0dcf0.zip
(find_candidate_packages_) restore old find_candidate_packages()
but change its return value (hash values instead of hash ref) (needed for next commit)
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index f0757e6e..1f795fd7 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -411,6 +411,19 @@ sub extract_packages_to_install {
\%inst;
}
+#- deprecated, use find_candidate_packages_() directly
+#-
+#- side-effects: none
+sub find_candidate_packages_ {
+ my ($urpm, $id_prop) = @_;
+
+ my %packages;
+ foreach ($urpm->find_candidate_packages($id_prop)) {
+ push @{$packages{$_->name}}, $_;
+ }
+ values %packages;
+}
+
#- get reason of update for packages to be updated
#- use all update medias if none given
sub get_updates_description {