diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-03-06 15:26:34 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-03-06 15:26:34 +0000 |
commit | 90d062f541b0c32a9a28798e7c65c4cfe109499b (patch) | |
tree | 2255838011b1e1ea582359f52ad4d088278bd80c /Rpmdrake | |
parent | 0f7b835fdfb65af1da98012a2329ebbc8870d780 (diff) | |
download | rpmdrake-90d062f541b0c32a9a28798e7c65c4cfe109499b.tar rpmdrake-90d062f541b0c32a9a28798e7c65c4cfe109499b.tar.gz rpmdrake-90d062f541b0c32a9a28798e7c65c4cfe109499b.tar.bz2 rpmdrake-90d062f541b0c32a9a28798e7c65c4cfe109499b.tar.xz rpmdrake-90d062f541b0c32a9a28798e7c65c4cfe109499b.zip |
(get_pkgs) fix not listing all updates (#38595) ; regression
introduced in r238520 on 2008-03-04 while adding priority upgrade list
support for 4.3.2:
"(get_pkgs) use more modern urpm::select::resolve_dependencies() API
instead of partially open-coding it, thus enabling further
improvements"
Diffstat (limited to 'Rpmdrake')
-rw-r--r-- | Rpmdrake/pkg.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index eab0ecd4..7ca26dbe 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -423,12 +423,17 @@ sub get_pkgs { priority_upgrade => $urpm->{options}{'priority-upgrade'}, auto_select => 1, upgrade_callback => sub { + my ($requested) = @_; @requested = sort map { urpm_name($_) } @{$urpm->{depslist}}[keys %$requested]; }, if_($probe_only_for_updates, resolve_req_callback => sub { @requested_strict = sort map { urpm_name($_) } @_ } ), ); + + # list updates including skiped ones + their deps in MandrivaUpdate: + push @requested, difference2(\@requested_strict, \@requested) if $probe_only_for_updates; + $priority_state = $restart_itself ? $state : undef; $priority_requested = $restart_itself ? $requested : undef; |