aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-26 11:44:36 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-26 11:44:36 +0000
commit5f859f6e58fd91362e4be525eb303d6e9bf85b37 (patch)
tree22b844a176df0eb5353408b1f810c2bf2b5cb648
parentbff430cf3cfe9ab44c22338eabe852433ba2d9da (diff)
downloadrpmdrake-5f859f6e58fd91362e4be525eb303d6e9bf85b37.tar
rpmdrake-5f859f6e58fd91362e4be525eb303d6e9bf85b37.tar.gz
rpmdrake-5f859f6e58fd91362e4be525eb303d6e9bf85b37.tar.bz2
rpmdrake-5f859f6e58fd91362e4be525eb303d6e9bf85b37.tar.xz
rpmdrake-5f859f6e58fd91362e4be525eb303d6e9bf85b37.zip
(perform_installation) return immediately on fatal error (wrongly removed in r148841)
-rwxr-xr-xRpmdrake/pkg.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index b3405e96..4cbeb5d1 100755
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -464,6 +464,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-(
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;
};
local $urpm->{error} = sub { printf STDERR "Error: %s\n", $_[0]; push @error_msgs, $_[0] };