On 2018-3-21 00:30 , db wrote:
> On 20 Mar 2018, at 03:34, Ryan Schmidt <[email protected]> wrote:
>> On Mar 19, 2018, at 16:29, db wrote:
>>> Is there any way to set in macports.conf to only fetch from master site 
>>> and/or, if needed, try a mirror?
>> What do you mean? MacPorts already tries to fetch from the master_sites 
>> specified in the portfile, and the mirrors, in an order defined by which 
>> ones are thought to be closest to you. Are you saying you want to influence 
>> the order in which they're tried?
> 
> Yes. Are there any options?

In addition to what Rainer mentioned?

host_blacklist, preferred_hosts
<https://guide.macports.org/chunked/internals.configuration-files.html>

> The guide says, macports_distfiles mirror is always implicitly appended to 
> master_sites, but from the my logs it seems *prepended*, as mirrors are hit 
> first.

It is appended, but sites are not tried in the order they are listed in
the Portfile, they are tried in ascending order of ping time.

- Josh

Reply via email to