summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-May/015682.html
blob: 720391c00fa14985bdce1213f15cc84519e94f23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] [soft-commits] [4522] - fix updates installation.
   </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%5B4522%5D%20-%20fix%20updates%20installation.&In-Reply-To=%3CCAONrEtZPnoSFZnGT%2B5zWGYsV5884ijWYxMik%2B%3D0rX3LUnqgp5g%40mail.gmail.com%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="015701.html">
   <LINK REL="Next"  HREF="015685.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] [soft-commits] [4522] - fix updates installation.</H1>
    <B>Thierry Vignaud</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B4522%5D%20-%20fix%20updates%20installation.&In-Reply-To=%3CCAONrEtZPnoSFZnGT%2B5zWGYsV5884ijWYxMik%2B%3D0rX3LUnqgp5g%40mail.gmail.com%3E"
       TITLE="[Mageia-dev] [soft-commits] [4522] - fix updates installation.">thierry.vignaud at gmail.com
       </A><BR>
    <I>Tue May 15 17:52:37 CEST 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="015701.html">[Mageia-dev] Freeze push: muparser
</A></li>
        <LI>Next message: <A HREF="015685.html">[Mageia-dev] [soft-commits] [4522] - fix updates installation.
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#15682">[ date ]</a>
              <a href="thread.html#15682">[ thread ]</a>
              <a href="subject.html#15682">[ subject ]</a>
              <a href="author.html#15682">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>On 15 May 2012 17:21,  &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">root at mageia.org</A>&gt; wrote:
&gt;<i> Revision 4522 Author rtp Date 2012-05-15 17:21:44 +0200 (Tue, 15 May 2012)
</I>&gt;<i>
</I>&gt;<i> Log Message
</I>&gt;<i>
</I>&gt;<i> - fix updates installation. installUpdates was relying on
</I>&gt;<i> urpmi_add_all_media
</I>&gt;<i>   return value different than 0, which was always 0 due to the 'undef $wait'
</I>&gt;<i>   line
</I>
This is bogus:
- if we don't have rpmdrake installed
- if we're in the text mode install.

What you wanted was probably this:

    my $val = run_program::rooted($::prefix, $binary, '&gt;&gt;', $log_file,
'2&gt;&gt;', $log_file, @options);
    undef $wait;
    $val;
}

Also your description in NEWS is ... undescriptive
&quot;fix detecting if adding update media succeeded&quot; would have been better


&gt;<i> --- drakx/trunk/perl-install/NEWS	2012-05-15 08:08:22 UTC (rev 4521)
</I>&gt;<i> +++ drakx/trunk/perl-install/NEWS	2012-05-15 15:21:44 UTC (rev 4522)
</I>&gt;<i> @@ -1,3 +1,6 @@
</I>&gt;<i> +Version 14.22 - 15 May 2012
</I>&gt;<i> +- fix urpmi_add_all_media
</I>&gt;<i> +
</I>&gt;<i>  Version 14.21 - 11 May 2012
</I>&gt;<i>
</I>&gt;<i>  - harddrake2: allow writing 0 as module option, and forbid options
</I>&gt;<i>
</I>&gt;<i> Modified: drakx/trunk/perl-install/any.pm
</I>&gt;<i> ===================================================================
</I>&gt;<i> --- drakx/trunk/perl-install/any.pm	2012-05-15 08:08:22 UTC (rev 4521)
</I>&gt;<i> +++ drakx/trunk/perl-install/any.pm	2012-05-15 15:21:44 UTC (rev 4522)
</I>&gt;<i> @@ -976,8 +976,8 @@
</I>&gt;<i>      local $ENV{URPMI_ADDMEDIA_REASON} = $reason;
</I>&gt;<i>
</I>&gt;<i>      my $log_file = '/root/drakx/updates.log';
</I>&gt;<i> +    undef $wait;
</I>&gt;<i>      run_program::rooted($::prefix, $binary, '&gt;&gt;', $log_file, '2&gt;&gt;',
</I>&gt;<i> $log_file, @options);
</I>&gt;<i> -    undef $wait;
</I>&gt;<i>  }
</I></PRE>























<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="015701.html">[Mageia-dev] Freeze push: muparser
</A></li>
	<LI>Next message: <A HREF="015685.html">[Mageia-dev] [soft-commits] [4522] - fix updates installation.
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#15682">[ date ]</a>
              <a href="thread.html#15682">[ thread ]</a>
              <a href="subject.html#15682">[ subject ]</a>
              <a href="author.html#15682">[ 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>