summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
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 {