summaryrefslogtreecommitdiffstats
path: root/perl-install/install/pkgs.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-09-03 17:29:30 +0000
committerThierry Vignaud <tv@mageia.org>2012-09-03 17:29:30 +0000
commita42538f666f524e51abdcf31f33deac8d78a3877 (patch)
tree3cb900f67b1d2c58d92ccc3f2d61cf806421db46 /perl-install/install/pkgs.pm
parent66dc3d5c248149a73f17015be709fb8f5ac77853 (diff)
downloaddrakx-a42538f666f524e51abdcf31f33deac8d78a3877.tar
drakx-a42538f666f524e51abdcf31f33deac8d78a3877.tar.gz
drakx-a42538f666f524e51abdcf31f33deac8d78a3877.tar.bz2
drakx-a42538f666f524e51abdcf31f33deac8d78a3877.tar.xz
drakx-a42538f666f524e51abdcf31f33deac8d78a3877.zip
(installPackages) prevent going further if some transactions failed (mga#7016)
(_install_raw,install) propagate exit code
Diffstat (limited to 'perl-install/install/pkgs.pm')
-rw-r--r--perl-install/install/pkgs.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm
index 620e26b99..0115cd016 100644
--- a/perl-install/install/pkgs.pm
+++ b/perl-install/install/pkgs.pm
@@ -774,7 +774,7 @@ sub install {
#- place (install::steps_gtk.pm,...).
$callback->($packages, user => undef, install => $nb, $total);
- _install_raw($packages, $isUpgrade, $callback, $LOG, 0);
+ my $exit_code = _install_raw($packages, $isUpgrade, $callback, $LOG, 0);
log::l("closing install.log file");
close $LOG;
@@ -785,6 +785,8 @@ sub install {
clean_rpmdb_shared_regions(); #- workaround librpm which is buggy when using librpm rooted and the just installed rooted library
fs::loopback::save_boot($loop_boot);
+
+ $exit_code;
}
sub _unselect_package {