diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-20 16:44:21 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-20 16:44:21 +0000 |
commit | faea38fc5fc03fb27697d527484f9712e1fdbe5d (patch) | |
tree | 34dffb81ddaa167b37b0081f5a4f1cc8db01c4e6 /Rpmdrake | |
parent | 1c8c39a91f981e4d88197287ba61be437e384b96 (diff) | |
download | rpmdrake-faea38fc5fc03fb27697d527484f9712e1fdbe5d.tar rpmdrake-faea38fc5fc03fb27697d527484f9712e1fdbe5d.tar.gz rpmdrake-faea38fc5fc03fb27697d527484f9712e1fdbe5d.tar.bz2 rpmdrake-faea38fc5fc03fb27697d527484f9712e1fdbe5d.tar.xz rpmdrake-faea38fc5fc03fb27697d527484f9712e1fdbe5d.zip |
(perform_installation) split urpmi like @to_install variable (needed
for next commit)
Diffstat (limited to 'Rpmdrake')
-rw-r--r-- | Rpmdrake/pkg.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 0afc831e..08b793fd 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -656,7 +656,9 @@ 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}}[keys %{$state->{selected}}]);#{ $a->name cmp $b->name } @{$urpm->{depslist}}[keys %{$state->{selected}}]; + my @to_install = @{$urpm->{depslist}}[keys %{$state->{selected}}]; + my @pkgs = map { scalar($_->fullname) } sort(grep { $_->flag_selected } @to_install); + @{$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; |