summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/20101103/001376.html
blob: 4ea14202998627816a1b8b07973483cb85f54b7e (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
127
128
129
130
131
132
133
134
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] Mirror list for apps (LONG mail)
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Mirror%20list%20for%20apps%20%28LONG%20mail%29&In-Reply-To=%3C20101103184716.GV7479%40virgo.home.nanardon.zarb.org%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="001375.html">
   <LINK REL="Next"  HREF="001377.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] Mirror list for apps (LONG mail)</H1>
    <B>Olivier Thauvin</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Mirror%20list%20for%20apps%20%28LONG%20mail%29&In-Reply-To=%3C20101103184716.GV7479%40virgo.home.nanardon.zarb.org%3E"
       TITLE="[Mageia-dev] Mirror list for apps (LONG mail)">nanardon at nanardon.zarb.org
       </A><BR>
    <I>Wed Nov  3 19:47:16 CET 2010</I>
    <P><UL>
        <LI>Previous message: <A HREF="001375.html">[Mageia-dev] LibreOffice
</A></li>
        <LI>Next message: <A HREF="001377.html">[Mageia-dev] Mirror list for apps (LONG mail)
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#1376">[ date ]</a>
              <a href="thread.html#1376">[ thread ]</a>
              <a href="subject.html#1376">[ subject ]</a>
              <a href="author.html#1376">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Hi,

I wrote an application to register mirrors which is currently here:
<A HREF="http://distrib-coffee.ipsl.jussieu.fr/mageia-mirrors/">http://distrib-coffee.ipsl.jussieu.fr/mageia-mirrors/</A>

I hadn't the time to really check mirror brain, I just had a quick look,
so don't ask.

In all case the goal of my application is to allow everyone to register
a new mirror, and provide a list usuable by urpmi.

It is time to write the part of code responsible of the list build.
So come some questions.

First let me explain the current mandriva process:

1) At time we have an /etc/product.id given by
mandriva-release-Free-2011.0-0.1mdv2011.0
On my system it contains:
vendor=Mandriva,distribution=Mandriva Linux,type=Basic,version=2011.0,branch=Devel,release=1,arch=x86_64,product=Free


2) The base URL list is hardcoded in urpmi:
&quot;<A HREF="https://api.mandriva.com/mirrors/$product_type.$product_version.$arch.list">https://api.mandriva.com/mirrors/$product_type.$product_version.$arch.list</A>&quot;
On my system the correct url is:
<A HREF="https://api.mandriva.com/mirrors/basic.cooker.x86_64.list">https://api.mandriva.com/mirrors/basic.cooker.x86_64.list</A>

3) The list look like:
continent=EU,zone=DE,country=Germany,latitude=51.97,longitude=7.63,version=2011.0,arch=x86_64,type=distrib,url=<A HREF="rsync://ftp.join.uni-muenster.de/mandrakelinux/devel/2011.0/x86_64">rsync://ftp.join.uni-muenster.de/mandrakelinux/devel/2011.0/x86_64</A>
continent=EU,zone=DE,country=Germany,latitude=51.97,longitude=7.63,version=2011.0,arch=x86_64,type=updates,url=<A HREF="rsync://ftp.join.uni-muenster.de/mandrakelinux/devel/2011.0/x86_64">rsync://ftp.join.uni-muenster.de/mandrakelinux/devel/2011.0/x86_64</A>

So, question and my own POV about this:
1) /etc/product.id
  * I don't like this file, I think it is redundant with
    /etc/mandriva-release
  * Why &quot;basic&quot; and not &quot;Free&quot; since it is the &quot;product&quot; flag ? Dunno
  * Notice &quot;cooker&quot; does not appear in this file

2) The url
  * I suggest to use <A HREF="http://mirror.mageia.org/api/,">http://mirror.mageia.org/api/,</A> other proposal
    welcome (need some review with sys admin)
  * Obviously the valid list version is 'cooker' not 2011
  * it is harcoded in urpmi

3) The content
  * tags seems be optional
  * mirror point to 2011 not cooker (a symlink at time)
  * I can produce same output as I have same information
  * Do we need specific line for update since now distribution include
    everything
  * Do we keep this format ?

Keeping this format is more simple, just changing the line specifiying
basis url in URPMI.
By changing the the format we can add features, make it clearer, etc...
But changing format to what ? XML ? YAML ? CSV ? something worst ? :)
Changes can done later.

At time, even made some criticisms, I do plan to redo exactly the same
things, first for compability issue (update from mdv to mga) and because
it will need only few changes in urpmi, making the thing easier.

Comments, Suggests ?

Regards.

-- 

Olivier Thauvin
CNRS  -  LATMOS
&#9814; &#9816; &#9815; &#9813; &#9812; &#9815; &#9816; &#9814;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: &lt;/pipermail/mageia-dev/attachments/20101103/f2de9513/attachment.asc&gt;
</PRE>


<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="001375.html">[Mageia-dev] LibreOffice
</A></li>
	<LI>Next message: <A HREF="001377.html">[Mageia-dev] Mirror list for apps (LONG mail)
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#1376">[ date ]</a>
              <a href="thread.html#1376">[ thread ]</a>
              <a href="subject.html#1376">[ subject ]</a>
              <a href="author.html#1376">[ 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>