diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-10-04 14:41:53 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-10-04 14:41:53 +0000 |
commit | 8b025f172f54dc3bdffd86e3f64ebca435d0dcf0 (patch) | |
tree | 87f72c84420f721191f5871a90a4b9d2aa25c43b | |
parent | f2be43ab69e87c9c3ded8db93ab3b499acf04dfb (diff) | |
download | urpmi-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)
-rw-r--r-- | urpm.pm | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 { |