diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-06-06 12:28:16 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-06-06 12:28:16 +0000 |
commit | 099ab9309449e754eb49e759e1c96c84ac862ad0 (patch) | |
tree | 73e637087f7f21a45302635049b95ab744109b19 /Rpmdrake/pkg.pm | |
parent | 03c61d357d2cefac2c8d1c295f993ad9a9ed6ec4 (diff) | |
download | rpmdrake-099ab9309449e754eb49e759e1c96c84ac862ad0.tar rpmdrake-099ab9309449e754eb49e759e1c96c84ac862ad0.tar.gz rpmdrake-099ab9309449e754eb49e759e1c96c84ac862ad0.tar.bz2 rpmdrake-099ab9309449e754eb49e759e1c96c84ac862ad0.tar.xz rpmdrake-099ab9309449e754eb49e759e1c96c84ac862ad0.zip |
(perform_installation) ensure "initialization" dialog got destroyed if an
error happens very early (ie if no package was ever installed)
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rwxr-xr-x | Rpmdrake/pkg.pm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 4cbeb5d1..cc628b75 100755 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -461,7 +461,6 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( local $urpm->{fatal} = sub { my $fatal_msg = $_[1]; printf STDERR "Fatal: %s\n", $fatal_msg; - Rpmdrake::gurpm::end(); interactive_msg(N("Installation failed"), N("There was a problem during the installation:\n\n%s", $fatal_msg)); goto return_with_exit_code; @@ -526,6 +525,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( 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 $_guard = before_leaving { Rpmdrake::gurpm::end() }; my $canceled; my (@errors); my $something_installed; @@ -730,8 +730,6 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( goto return_with_exit_code; } - Rpmdrake::gurpm::end(); - if (@errors || @error_msgs) { interactive_msg( N("Problem during installation"), @@ -781,7 +779,6 @@ you may now inspect some in order to take actions:"), ); } } else { - Rpmdrake::gurpm::end(); interactive_msg(N("Error"), N("Unrecoverable error: no package found for installation, sorry.")); } |