diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-03-22 21:34:07 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-03-22 21:34:07 +0000 |
commit | d63f1a4fd652bef657be2afc70f500777023f9a6 (patch) | |
tree | 19cd5d0f258eabb7f5094ad6ec4c5de9e06bbf2c /Rpmdrake/pkg.pm | |
parent | 9871dfbb187bed53a40d188a9654d4abd7e27c5b (diff) | |
download | rpmdrake-d63f1a4fd652bef657be2afc70f500777023f9a6.tar rpmdrake-d63f1a4fd652bef657be2afc70f500777023f9a6.tar.gz rpmdrake-d63f1a4fd652bef657be2afc70f500777023f9a6.tar.bz2 rpmdrake-d63f1a4fd652bef657be2afc70f500777023f9a6.tar.xz rpmdrake-d63f1a4fd652bef657be2afc70f500777023f9a6.zip |
(perform_installation) fix "unable to remove package" errors messages
with update packages (#29823) (#29291's fix wasn't enough for updates
packages)
Diffstat (limited to 'Rpmdrake/pkg.pm')
-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 7fa2ab5b..1bdc38b6 100755 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -518,7 +518,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( my $_guard = before_leaving { urpm::removable::try_umounting_removables($urpm) }; # select packages to uninstall for !update mode: - perform_removal($urpm, { map { my $p = $pkgs->{$_}; $p->{selected} && $p->{pkg}->flag_installed ? ($_ => $p) : () } keys %$pkgs }) if !$probe_only_for_updates; + perform_removal($urpm, { map { $_ => $pkgs->{$_} } @to_remove }) if !$probe_only_for_updates; Rpmdrake::gurpm::init(1 ? N("Please wait") : N("Package installation..."), N("Initializing..."), transient => $::main_window); my $canceled; |