Using a password-protected mirror
Joshua Root
jmr at macports.org
Sun Jan 11 00:28:47 PST 2009
Ryan Schmidt wrote:
> set portfetch::mirror_sites::sites(macports_distfiles) {
> http://username:password@machine1.local/distfiles/:mirror
> http://username:password@machine2.local/distfiles/:mirror
> http://distfiles.macports.org/:mirror
> ...
>
>
> But this doesn't work.
>
>
> ---> Fetching clex
> DEBUG: Executing org.macports.fetch (clex)
> ---> clex-4.0.tar.gz doesn't seem to exist in
> /mp/var/macports/distfiles/clex
> DEBUG: Pinging www.clex.sk...
> DEBUG: Pinging usernameclex...
> DEBUG: Pinging distfiles.macports.org...
> DEBUG: Pinging trd.no.distfiles.macports.org...
> DEBUG: Pinging arn.se.distfiles.macports.org...
> DEBUG: www.clex.sk ping time is 164.769
> DEBUG: usernameclex ping time is 55.002
> DEBUG: distfiles.macports.org ping time is 63.104
> DEBUG: trd.no.distfiles.macports.org ping time is 185.866
> DEBUG: arn.se.distfiles.macports.org ping time is 169.125
>
>
> See, it cut the URL at the colon after the username, and seems to have
> inserted the port name instead.
Colon is used as a marker to separate the URL from the tags. I think
this is what fetch.user and fetch.password are for. But of course they
can't be set globally.
- Josh
More information about the macports-dev
mailing list