summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2013-March/023281.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-dev/2013-March/023281.html')
-rw-r--r--zarb-ml/mageia-dev/2013-March/023281.html122
1 files changed, 122 insertions, 0 deletions
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 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-dev] [soft-commits] [5589] (installPackages) prevent going further if some transactions failed (mga#7016)
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B5589%5D%20%28installPackages%29%20prevent%0A%09going%20further%09if%20some%20transactions%20failed%20%28mga%237016%29&In-Reply-To=%3C20130305002254.GF21938%40mars-attacks.org%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="023323.html">
+ <LINK REL="Next" HREF="023282.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-dev] [soft-commits] [5589] (installPackages) prevent going further if some transactions failed (mga#7016)</H1>
+ <B>nicolas vigier</B>
+ <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B5589%5D%20%28installPackages%29%20prevent%0A%09going%20further%09if%20some%20transactions%20failed%20%28mga%237016%29&In-Reply-To=%3C20130305002254.GF21938%40mars-attacks.org%3E"
+ TITLE="[Mageia-dev] [soft-commits] [5589] (installPackages) prevent going further if some transactions failed (mga#7016)">boklm at mars-attacks.org
+ </A><BR>
+ <I>Tue Mar 5 01:22:55 CET 2013</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="023323.html">[Mageia-dev] Regular users installing updates through packagekit or rpmdrake
+</A></li>
+ <LI>Next message: <A HREF="023282.html">[Mageia-dev] freeze push: bootloader-utils
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#23281">[ date ]</a>
+ <a href="thread.html#23281">[ thread ]</a>
+ <a href="subject.html#23281">[ subject ]</a>
+ <a href="author.html#23281">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>On Mon, 03 Sep 2012, <A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">root at mageia.org</A> wrote:
+
+&gt;<i> Revision: 5589
+</I>&gt;<i> Author: tv
+</I>&gt;<i> Date: 2012-09-03 19:29:30 +0200 (Mon, 03 Sep 2012)
+</I>&gt;<i> Log Message:
+</I>&gt;<i> -----------
+</I>&gt;<i> (installPackages) prevent going further if some transactions failed (mga#7016)
+</I>&gt;<i>
+</I>&gt;<i> (_install_raw,install) propagate exit code
+</I>&gt;<i>
+</I>&gt;<i> Modified Paths:
+</I>&gt;<i> --------------
+</I>&gt;<i> drakx/trunk/perl-install/install/NEWS
+</I>&gt;<i> drakx/trunk/perl-install/install/pkgs.pm
+</I>&gt;<i> drakx/trunk/perl-install/install/steps.pm
+</I>&gt;<i>
+</I>
+[..]
+
+&gt;<i> Modified: drakx/trunk/perl-install/install/steps.pm
+</I>&gt;<i> ===================================================================
+</I>&gt;<i> --- drakx/trunk/perl-install/install/steps.pm 2012-09-03 17:29:27 UTC (rev 5588)
+</I>&gt;<i> +++ drakx/trunk/perl-install/install/steps.pm 2012-09-03 17:29:30 UTC (rev 5589)
+</I>&gt;<i> @@ -427,6 +427,7 @@
+</I>&gt;<i> #- small transaction will be built based on this selection and depslist.
+</I>&gt;<i> my @toInstall = install::pkgs::packagesToInstall($packages);
+</I>&gt;<i>
+</I>&gt;<i> + my $exit_code;
+</I>&gt;<i> my $time = time();
+</I>&gt;<i> {
+</I>&gt;<i> local $ENV{DURING_INSTALL} = 1;
+</I>&gt;<i> @@ -434,13 +435,14 @@
+</I>&gt;<i> local $ENV{TMP} = '/tmp';
+</I>&gt;<i> local $ENV{HOME};
+</I>&gt;<i> local $packages-&gt;{options}{auto} = !$o_interactive;
+</I>&gt;<i> - install::pkgs::install($o-&gt;{isUpgrade}, \@toInstall, $packages, \&amp;installCallback);
+</I>&gt;<i> + $exit_code = install::pkgs::install($o-&gt;{isUpgrade}, \@toInstall, $packages, \&amp;installCallback);
+</I>&gt;<i> }
+</I>&gt;<i> any::writeandclean_ldsoconf($::prefix);
+</I>&gt;<i>
+</I>&gt;<i> log::l(&quot;Install took: &quot;, formatTimeRaw(time() - $time));
+</I>&gt;<i> run_program::rooted_or_die($::prefix, 'ldconfig') if !$o-&gt;{justdb};
+</I>&gt;<i>
+</I>&gt;<i> + $exit_code and die &quot;Installation failed&quot;;
+</I>&gt;<i> install::media::log_sizes();
+</I>&gt;<i> scalar(@toInstall); #- return number of packages installed.
+</I>&gt;<i> }
+</I>
+Shouldn't it be cdie instead of die ? So that the error can be catched
+by steps_interactive::installPackages__handle_error.
+
+</PRE>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="023323.html">[Mageia-dev] Regular users installing updates through packagekit or rpmdrake
+</A></li>
+ <LI>Next message: <A HREF="023282.html">[Mageia-dev] freeze push: bootloader-utils
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#23281">[ date ]</a>
+ <a href="thread.html#23281">[ thread ]</a>
+ <a href="subject.html#23281">[ subject ]</a>
+ <a href="author.html#23281">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
+mailing list</a><br>
+</body></html>