diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-10-26 10:54:02 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-10-26 10:54:02 +0000 |
commit | 36229f64a891de269f7fbb4b99ecefc56a22c4c4 (patch) | |
tree | 91bb0833ab07c7378a34b930a6f10046ef6253b8 | |
parent | 8bb2ee6bc13e1d41579330c2e5b2e45334d0a08f (diff) | |
download | rpmdrake-36229f64a891de269f7fbb4b99ecefc56a22c4c4.tar rpmdrake-36229f64a891de269f7fbb4b99ecefc56a22c4c4.tar.gz rpmdrake-36229f64a891de269f7fbb4b99ecefc56a22c4c4.tar.bz2 rpmdrake-36229f64a891de269f7fbb4b99ecefc56a22c4c4.tar.xz rpmdrake-36229f64a891de269f7fbb4b99ecefc56a22c4c4.zip |
(perform_installation) fix uninstalling the last package deselected for removal
when installing others packages (#26108)
-rwxr-xr-x | rpmdrake | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1858,7 +1858,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( # FIXME: $_ is trashed: my @pkgs = map { my $c = $_->fullname; $c } sort(grep { $_->flag_selected } @{$urpm->{depslist}});#{ $a->name cmp $b->name } @{$urpm->{depslist}}[keys %{$state->{selected}}]; @{$urpm->{ask_remove}} = sort $urpm->removed_packages($urpm->{state}); - my @to_remove = uniq(@{$urpm->{ask_remove}}, grep { $_ } map { if_($pkgs->{$_}{selected}, $pkgs->{$_}{urpm_name}) } keys %$pkgs); + my @to_remove = grep { $_ } map { if_($pkgs->{$_}{selected}, $pkgs->{$_}{urpm_name}) } keys %$pkgs; my $r = join "\n", $urpm->translate_why_removed($urpm->{state}, @to_remove); |