aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/pkg.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-22 21:34:07 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-22 21:34:07 +0000
commitd63f1a4fd652bef657be2afc70f500777023f9a6 (patch)
tree19cd5d0f258eabb7f5094ad6ec4c5de9e06bbf2c /Rpmdrake/pkg.pm
parent9871dfbb187bed53a40d188a9654d4abd7e27c5b (diff)
downloadrpmdrake-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-xRpmdrake/pkg.pm2
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;