diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-03-04 23:25:34 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-03-04 23:25:34 +0000 |
commit | ab33211db20a80f494950231098bba1ab5f8ba7d (patch) | |
tree | 4e0baa8bc09e39f1698937143072fbb43a0deba0 /Rpmdrake | |
parent | 0c37f73ccba73a013297ca8e43bd6c457be060a8 (diff) | |
download | rpmdrake-ab33211db20a80f494950231098bba1ab5f8ba7d.tar rpmdrake-ab33211db20a80f494950231098bba1ab5f8ba7d.tar.gz rpmdrake-ab33211db20a80f494950231098bba1ab5f8ba7d.tar.bz2 rpmdrake-ab33211db20a80f494950231098bba1ab5f8ba7d.tar.xz rpmdrake-ab33211db20a80f494950231098bba1ab5f8ba7d.zip |
(perform_installation) use more modern urpm::select::resolve_dependencies() API (needed for next commit)
Diffstat (limited to 'Rpmdrake')
-rw-r--r-- | Rpmdrake/pkg.pm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 58d8aed4..43b4e032 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -579,8 +579,10 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( my $bar_id = statusbar_msg(N("Checking validity of requested packages..."), 0); # select packages to install: my $requested = { map { $_->id => undef } grep { $_->flag_selected } @{$urpm->{depslist}} }; - $urpm->resolve_requested(open_rpm_db(), $state, $requested, - callback_choices => \&Rpmdrake::gui::callback_choices); + $restart_itself = urpm::select::resolve_dependencies( + $urpm, $state, $requested, + callback_choices => \&Rpmdrake::gui::callback_choices, + ); statusbar_msg_remove($bar_id); my ($local_sources, $list) = urpm::get_pkgs::selected2list($urpm, @@ -596,7 +598,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( goto return_with_exit_code; } - my @pkgs = map { scalar($_->fullname) } sort(grep { $_->flag_selected } @{$urpm->{depslist}});#{ $a->name cmp $b->name } @{$urpm->{depslist}}[keys %{$state->{selected}}]; + my @pkgs = map { scalar($_->fullname) } sort(grep { $_->flag_selected } @{$urpm->{depslist}}[keys %{$state->{selected}}]);#{ $a->name cmp $b->name } @{$urpm->{depslist}}[keys %{$state->{selected}}]; @{$urpm->{ask_remove}} = sort urpm::select::removed_packages($urpm, $urpm->{state}); my @to_remove = map { if_($pkgs->{$_}{selected} && !$pkgs->{$_}{pkg}->flag_upgrade, $pkgs->{$_}{urpm_name}) } keys %$pkgs; @@ -651,7 +653,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( } }; - urpm::main_loop::run($urpm, $state, undef, undef, { }, + urpm::main_loop::run($urpm, $state, undef, undef, $requested, { completed => sub { # explicitly destroy the progress window when it's over; we may |