Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [pre-GLEP] Split distfile mirror directory structure
Date: Sun, 28 Jan 2018 10:40:26
Message-Id: 1517136016.1270.14.camel@gentoo.org
In Reply to: Re: [gentoo-dev] [pre-GLEP] Split distfile mirror directory structure by Ulrich Mueller
1 W dniu nie, 28.01.2018 o godzinie 11∶22 +0100, użytkownik Ulrich Mueller
2 napisał:
3 > > > > > > On Sun, 28 Jan 2018, Michał Górny wrote:
4 > > > > This specification currently defines one section: ``[structure]``.
5 > > > > This section defines one or more repository structure definitions
6 > > > > using sequential integer keys. The definition keyed as ``0``
7 > > > > is the most preferred structure. The package manager should use
8 > > > > the first structure format it recognizes as supported, and ignore any
9 > > > > it does not recognize. If this section is not present, the package
10 > > > > manager should behave as if only ``flat`` structure were supported.
11 > > >
12 > > > It is not at all clear from this how integer keys are ordered. The
13 > > > paragraph only says that "0" is most preferred, but says nothing about
14 > > > comparison of other numbers.
15 > > >
16 > > > For example, if there are keys "-1", "0", and "1" (these are
17 > > > "sequential integer keys", right?), what is their order of preference?
18 > > Please suggest a better wording. The idea was to use 0=, 1=, 2=...
19 >
20 > "... using non-negative integer keys. The definition with the
21 > smallest key is the most preferred structure. The package manager
22 > should ignore any formats it does not recognize."
23 >
24 > Ulrich
25
26 How about this then:
27
28 | This specification currently defines one section: ``[structure]``.
29 | This section defines one or more repository structure definitions
30 | using non-negative sequential integer keys. The definition with
31 | the ``0`` key is the most preferred structure. The package manager
32 | should ignore any formats it does not recognize. If this section
33 | is not present, the package manager should behave as if only ``flat``
34 | structure were specified.
35
36 I don't want people to skip numbers, and I want to avoid confusion
37 between 0/1 as initial number.
38
39 --
40 Best regards,
41 Michał Górny

Replies