From 1be510f9529cb082f802408b472a77d074b394c0 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sun, 14 Apr 2013 13:46:12 +0000 Subject: Add zarb MLs html archives --- zarb-ml/mageia-dev/2013-March/023281.html | 122 ++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 zarb-ml/mageia-dev/2013-March/023281.html (limited to 'zarb-ml/mageia-dev/2013-March/023281.html') diff --git a/zarb-ml/mageia-dev/2013-March/023281.html b/zarb-ml/mageia-dev/2013-March/023281.html new file mode 100644 index 000000000..ec33bd5b4 --- /dev/null +++ b/zarb-ml/mageia-dev/2013-March/023281.html @@ -0,0 +1,122 @@ + + + + [Mageia-dev] [soft-commits] [5589] (installPackages) prevent going further if some transactions failed (mga#7016) + + + + + + + + + +

[Mageia-dev] [soft-commits] [5589] (installPackages) prevent going further if some transactions failed (mga#7016)

+ nicolas vigier + boklm at mars-attacks.org +
+ Tue Mar 5 01:22:55 CET 2013 +

+
+ +
On Mon, 03 Sep 2012, root at mageia.org wrote:
+
+> Revision: 5589
+> Author:   tv
+> Date:     2012-09-03 19:29:30 +0200 (Mon, 03 Sep 2012)
+> Log Message:
+> -----------
+> (installPackages) prevent going further if some transactions failed (mga#7016)
+> 
+> (_install_raw,install) propagate exit code
+> 
+> Modified Paths:
+> --------------
+>     drakx/trunk/perl-install/install/NEWS
+>     drakx/trunk/perl-install/install/pkgs.pm
+>     drakx/trunk/perl-install/install/steps.pm
+> 
+
+[..]
+
+> Modified: drakx/trunk/perl-install/install/steps.pm
+> ===================================================================
+> --- drakx/trunk/perl-install/install/steps.pm	2012-09-03 17:29:27 UTC (rev 5588)
+> +++ drakx/trunk/perl-install/install/steps.pm	2012-09-03 17:29:30 UTC (rev 5589)
+> @@ -427,6 +427,7 @@
+>      #- small transaction will be built based on this selection and depslist.
+>      my @toInstall = install::pkgs::packagesToInstall($packages);
+>  
+> +    my $exit_code;
+>      my $time = time();
+>      { 
+>  	local $ENV{DURING_INSTALL} = 1;
+> @@ -434,13 +435,14 @@
+>  	local $ENV{TMP} = '/tmp';
+>  	local $ENV{HOME};
+>  	local $packages->{options}{auto} = !$o_interactive;
+> -	install::pkgs::install($o->{isUpgrade}, \@toInstall, $packages, \&installCallback);
+> +	$exit_code = install::pkgs::install($o->{isUpgrade}, \@toInstall, $packages, \&installCallback);
+>      }
+>      any::writeandclean_ldsoconf($::prefix);
+>  
+>      log::l("Install took: ", formatTimeRaw(time() - $time));
+>      run_program::rooted_or_die($::prefix, 'ldconfig') if !$o->{justdb};
+>  
+> +    $exit_code and die "Installation failed";
+>      install::media::log_sizes();
+>      scalar(@toInstall); #- return number of packages installed.
+>  }
+
+Shouldn't it be cdie instead of die ? So that the error can be catched
+by steps_interactive::installPackages__handle_error.
+
+
+ + + + + + + + + + + + + + + + + +
+

+ +
+More information about the Mageia-dev +mailing list
+ -- cgit v1.2.1