aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/pkg.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-20 10:22:40 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-20 10:22:40 +0000
commit11e76d2a686ebfa1676416d0a75c6b0e6c7a5bbc (patch)
tree7dcbe99fa42db99b9d17b9ecf7aee78120e5de88 /Rpmdrake/pkg.pm
parentd9eb474b115a57116b7c60201da54160cb497f65 (diff)
downloadrpmdrake-11e76d2a686ebfa1676416d0a75c6b0e6c7a5bbc.tar
rpmdrake-11e76d2a686ebfa1676416d0a75c6b0e6c7a5bbc.tar.gz
rpmdrake-11e76d2a686ebfa1676416d0a75c6b0e6c7a5bbc.tar.bz2
rpmdrake-11e76d2a686ebfa1676416d0a75c6b0e6c7a5bbc.tar.xz
rpmdrake-11e76d2a686ebfa1676416d0a75c6b0e6c7a5bbc.zip
(perform_installation,perform_removal) readd guards that really are needed
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r--Rpmdrake/pkg.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 4c9d666f..a8aa259a 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -562,6 +562,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-(
perform_removal($urpm, { map { $_ => $pkgs->{$_} } @to_remove }) if !$probe_only_for_updates;
$gurpm = Rpmdrake::gurpm->new(1 ? N("Please wait") : N("Package installation..."), N("Initializing..."), transient => $::main_window);
+ my $_gurpm_clean_guard = before_leaving { undef $gurpm };
my $canceled;
my $something_installed;
@@ -732,6 +733,7 @@ sub perform_removal {
my @toremove = map { if_($pkgs->{$_}{selected}, $pkgs->{$_}{urpm_name}) } keys %$pkgs;
return if !@toremove;
my $gurpm = Rpmdrake::gurpm->new(1 ? N("Please wait") : N("Please wait, removing packages..."), N("Initializing..."), transient => $::main_window);
+ my $_gurpm_clean_guard = before_leaving { undef $gurpm };
my $progress = -1;
local $urpm->{log} = sub {