summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-January/010972.html
blob: 84ecbdeca298e24f5576dd9ddd64981f0b06cc1f (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] RFC: task-obsolete and README.*.urpmi enhancement
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20RFC%3A%20task-obsolete%20and%20README.%2A.urpmi%20enhancement&In-Reply-To=%3C4F04E099.9030103%40free.fr%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="010960.html">
   <LINK REL="Next"  HREF="010951.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] RFC: task-obsolete and README.*.urpmi enhancement</H1>
    <B>Luc Menut</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20RFC%3A%20task-obsolete%20and%20README.%2A.urpmi%20enhancement&In-Reply-To=%3C4F04E099.9030103%40free.fr%3E"
       TITLE="[Mageia-dev] RFC: task-obsolete and README.*.urpmi enhancement">lmenut at free.fr
       </A><BR>
    <I>Thu Jan  5 00:28:25 CET 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="010960.html">[Mageia-dev] RFC: task-obsolete and README.*.urpmi enhancement
</A></li>
        <LI>Next message: <A HREF="010951.html">[Mageia-dev] (likely Quick) meeting tonight
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#10972">[ date ]</a>
              <a href="thread.html#10972">[ thread ]</a>
              <a href="subject.html#10972">[ subject ]</a>
              <a href="author.html#10972">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Le 04/01/2012 20:26, Anssi Hannula a &#233;crit :
&gt;<i> On 04.01.2012 17:53, Luc Menut wrote:
</I>[...]
&gt;&gt;<i> 1) add support for optional README.*.urpmi (%ghost in spec):
</I>&gt;&gt;<i> &gt;  This will allow to build this README.*.urpmi at install time in %pre,
</I>&gt;&gt;<i> &gt;  %post or %trigger only when it's necessary.
</I>&gt;&gt;<i> &gt;  One use case from the recent past in my mind:
</I>&gt;&gt;<i> &gt;  we have no way to inform users that still use nspluginwrapper + i586
</I>&gt;&gt;<i> &gt;  flashplayer on x86_64 (and only them), that this is now deprecated and
</I>&gt;&gt;<i> &gt;  they should replace the i586 by the x86_64 flashplayer,
</I>&gt;&gt;<i> &gt;  <A HREF="https://bugs.mageia.org/show_bug.cgi?id=2146#c22">https://bugs.mageia.org/show_bug.cgi?id=2146#c22</A>
</I>&gt;&gt;<i> &gt;  <A HREF="https://bugs.mageia.org/show_bug.cgi?id=2146#c25">https://bugs.mageia.org/show_bug.cgi?id=2146#c25</A>
</I>&gt;<i> This change seems reasonable.
</I>&gt;<i>
</I>&gt;&gt;<i> &gt;  2) handle README.*.(obsolete|deprecated).urpmi
</I>[...]
&gt;<i> I don't understand the need for this one, isn't this just the same as
</I>&gt;<i> README.urpmi?
</I>
You are right, we don't need this part; each trigger can add its message 
in task-obsolete/README.urpmi.

we just need the following patch to handle %ghost README.urpmi :

Index: urpm/install.pm
===================================================================
--- urpm/install.pm     (revision 2572)
+++ urpm/install.pm     (working copy)
@@ -109,6 +109,7 @@

      foreach my $file ($pkg-&gt;files) {
         my ($kind) = $file =~ m!/README([^/]*)\.urpmi$! or next;
+       -r $file or next;
         my $valid;
         if ($kind eq '') {
             $valid = 1;



-- 
Luc Menut
</PRE>






























<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="010960.html">[Mageia-dev] RFC: task-obsolete and README.*.urpmi enhancement
</A></li>
	<LI>Next message: <A HREF="010951.html">[Mageia-dev] (likely Quick) meeting tonight
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#10972">[ date ]</a>
              <a href="thread.html#10972">[ thread ]</a>
              <a href="subject.html#10972">[ subject ]</a>
              <a href="author.html#10972">[ 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>