How to prevent fetching from macports mirrors

Ryan Schmidt ryandesign at macports.org
Wed Mar 21 00:01:31 UTC 2018


On Mar 20, 2018, at 08:30, db wrote:

> On 20 Mar 2018, at 03:34, Ryan Schmidt 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? 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.

No, there are no options for influencing the order in which the servers are tried. There is not intended to be any reason for you to need to do so, since MacPorts intends to try them in order from fastest to slowest. So why do you want to change the order?


More information about the macports-dev mailing list