diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-03-21 14:42:49 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-03-21 14:42:49 +0000 |
commit | 0001f832b98a684132cfc87f375f29c8a759894f (patch) | |
tree | b72ce8b42965d437b88f256ede60f032994b7c35 /Rpmdrake | |
parent | 9516608111a81d341f7a86f293ba0260da8cbb4b (diff) | |
download | rpmdrake-0001f832b98a684132cfc87f375f29c8a759894f.tar rpmdrake-0001f832b98a684132cfc87f375f29c8a759894f.tar.gz rpmdrake-0001f832b98a684132cfc87f375f29c8a759894f.tar.bz2 rpmdrake-0001f832b98a684132cfc87f375f29c8a759894f.tar.xz rpmdrake-0001f832b98a684132cfc87f375f29c8a759894f.zip |
(perform_installation) fix bogus "unable to remove package" warnings (#29291)
Diffstat (limited to 'Rpmdrake')
-rwxr-xr-x | Rpmdrake/pkg.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 855fe5b0..ef1c1b4b 100755 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -497,7 +497,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( my @to_remove = grep { $_ } map { if_($pkgs->{$_}{selected}, $pkgs->{$_}{urpm_name}) } keys %$pkgs; # select packages to uninstall for !update mode: - perform_removal($urpm, $pkgs) if !$probe_only_for_updates; + perform_removal($urpm, { map { my $p = $pkgs->{$_}; $p->{selected} && $p->{pkg}->flag_installed ? ($_ => $p) : () } keys %$pkgs }) if !$probe_only_for_updates; my $r = join "\n", urpm::select::translate_why_removed($urpm, $urpm->{state}, @to_remove); |