public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-dev] Portage Feature Request: making thirdpartymirrors easier to manage
  @ 2014-01-11 18:27 99%     ` Gordon Pettey
  0 siblings, 0 replies; 1+ results
From: Gordon Pettey @ 2014-01-11 18:27 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 2017 bytes --]

On Thu, Jan 9, 2014 at 9:26 AM, Ben Kohler <bkohler@gmail.com> wrote:

>
> On Mon, Jan 6, 2014 at 2:20 PM, Robin H. Johnson <robbat2@gentoo.org>wrote:
>
>> I would like to make it a directory instead of a single file, and extend
>> the internal syntax.
>>
> I'm not sure I see much real value in allowing individual profiles to
> add/remove mirrors from each group, to be honest.  Maybe I'm just not
> thinking of the right scenarios.
>

Ignorant question: Can overlays modify profile easily (if at all?) If not,
then taking mirror lists out of profile seems rather sane, and would allow
overlays to add their own mirrors.

Spec thought:

1. make.conf should define MIRROR_REGIONS, which is a space separated list
of Region/Subregion/Locality strings (e.g.
"north_america/united_states/texas europe/germany/düsseldorf").
2. Using the file layout as bkohler suggested (e.g.
mirrors/{mirrorname,othermirrorname,thirdmirrorname}/{Asia,Europe}:
mirrorname may be a file or a directory. If it is a directory, it may
contain a file named "mirrorlist" if there are global mirrors, and it may
contain any number of region-named files or directories.
3. If a region-named "file" is a directory, then it must contain either a
file mirrorlist if it has region-level mirrors, or files/directories for
subregions.
4. When emerge fetches a file, if the most specific region (of the first
entry, if there are multiple entries) is not found, move up to the next
greater-sized region (one directory up). If that region exists, then
concatenate all of its subregions into the list to select a URL from. If it
doesn't exist, move up another level, and again, if it is found,
concatenate everything below it into the list of possible URLs. If the
final top-level region isn't found, move to the next MIRROR_REGIONS entry,
if it exists. Otherwise, concatenate every available region for that mirror
into the list.

This could all be done in a flat XML (or YAML, to avoid boilerplate) file,
too.

[-- Attachment #2: Type: text/html, Size: 2896 bytes --]

^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2014-01-06 20:20     [gentoo-dev] Portage Feature Request: making thirdpartymirrors easier to manage Robin H. Johnson
2014-01-10  4:58     ` Michał Górny
2014-01-10  6:05       ` Alec Warner
2014-01-11 18:27 99%     ` Gordon Pettey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox