Add SourceForge bottle mirror selection.
Use ENV['HOMEBREW_SOURCEFORGE_MIRROR']. Closes Homebrew/homebrew#15642. Closes Homebrew/homebrew#17368.
This commit is contained in:
parent
27700390b4
commit
161b89ddf0
@ -446,6 +446,12 @@ can take several different forms:
|
|||||||
|
|
||||||
*Note:* Homebrew will only try to print emoji on Lion or newer.
|
*Note:* Homebrew will only try to print emoji on Lion or newer.
|
||||||
|
|
||||||
|
* HOMEBREW\_SOURCEFORGE\_MIRROR:
|
||||||
|
If set, Homebrew will use the value of `HOMEBREW_SOURCEFORGE_MIRROR` to
|
||||||
|
select a SourceForge mirror for downloading bottles.
|
||||||
|
|
||||||
|
*Example:* `export HOMEBREW_SOURCEFORGE_MIRROR='heanet'`
|
||||||
|
|
||||||
* HOMEBREW\_SVN:
|
* HOMEBREW\_SVN:
|
||||||
When exporting from Subversion, Homebrew will use `HOMEBREW_SVN` if set,
|
When exporting from Subversion, Homebrew will use `HOMEBREW_SVN` if set,
|
||||||
a Homebrew-built Subversion if installed, or the system-provided binary.
|
a Homebrew-built Subversion if installed, or the system-provided binary.
|
||||||
|
|||||||
@ -200,6 +200,8 @@ class CurlBottleDownloadStrategy < CurlDownloadStrategy
|
|||||||
def initialize name, package
|
def initialize name, package
|
||||||
super
|
super
|
||||||
@tarball_path = HOMEBREW_CACHE/"#{name}-#{package.version}#{ext}"
|
@tarball_path = HOMEBREW_CACHE/"#{name}-#{package.version}#{ext}"
|
||||||
|
mirror = ENV['HOMEBREW_SOURCEFORGE_MIRROR']
|
||||||
|
@url = "#{@url}?use_mirror=#{mirror}" if mirror
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -19,10 +19,7 @@ Homebrew is the easiest and most flexible way to install the UNIX tools Apple di
|
|||||||
For the full command list, see the COMMANDS section\.
|
For the full command list, see the COMMANDS section\.
|
||||||
.
|
.
|
||||||
.P
|
.P
|
||||||
With \fB\-\-verbose\fR or \fB\-v\fR, many commands print extra debugging information\.
|
With \fB\-\-verbose\fR or \fB\-v\fR, many commands print extra debugging information\. Note that these flags should only appear after a command\.
|
||||||
.
|
|
||||||
.br
|
|
||||||
Note that these flags should only appear after a command\.
|
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
\fBinstall\fR \fIformula\fR
|
\fBinstall\fR \fIformula\fR
|
||||||
@ -493,6 +490,13 @@ If set, Homebrew will not print the beer emoji on a successful build\.
|
|||||||
\fINote:\fR Homebrew will only try to print emoji on Lion or newer\.
|
\fINote:\fR Homebrew will only try to print emoji on Lion or newer\.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
|
HOMEBREW_SOURCEFORGE_MIRROR
|
||||||
|
If set, Homebrew will use the value of \fBHOMEBREW_SOURCEFORGE_MIRROR\fR to select a SourceForge mirror for downloading bottles\.
|
||||||
|
.
|
||||||
|
.IP
|
||||||
|
\fIExample:\fR \fBexport HOMEBREW_SOURCEFORGE_MIRROR=\'heanet\'\fR
|
||||||
|
.
|
||||||
|
.TP
|
||||||
HOMEBREW_SVN
|
HOMEBREW_SVN
|
||||||
When exporting from Subversion, Homebrew will use \fBHOMEBREW_SVN\fR if set, a Homebrew\-built Subversion if installed, or the system\-provided binary\.
|
When exporting from Subversion, Homebrew will use \fBHOMEBREW_SVN\fR if set, a Homebrew\-built Subversion if installed, or the system\-provided binary\.
|
||||||
.
|
.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user