Replace create --cache with create --no-fetch
Because since 0.8 we do the opposite, ie. download by default.
This commit is contained in:
parent
b7f093925e
commit
e0639f1588
@ -85,7 +85,7 @@ class FormulaCreator
|
|||||||
puts "Version detected as #{version}."
|
puts "Version detected as #{version}."
|
||||||
end
|
end
|
||||||
|
|
||||||
unless ARGV.include? "--no-md5" and version
|
unless ARGV.include? "--no-fetch" and version
|
||||||
strategy = detect_download_strategy url
|
strategy = detect_download_strategy url
|
||||||
@md5 = strategy.new(url, name, version, nil).fetch.md5 if strategy == CurlDownloadStrategy
|
@md5 = strategy.new(url, name, version, nil).fetch.md5 if strategy == CurlDownloadStrategy
|
||||||
end
|
end
|
||||||
|
|||||||
@ -110,11 +110,11 @@ Uninstall \fIformula\fR\.
|
|||||||
If \fB\-\-force\fR is passed, and there are multiple versions of \fIformula\fR installed, delete all installed versions\.
|
If \fB\-\-force\fR is passed, and there are multiple versions of \fIformula\fR installed, delete all installed versions\.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
\fBcreate [\-\-cache]\fR \fIURL\fR
|
\fBcreate [\-\-no\-fetch]\fR \fIURL\fR
|
||||||
Generate a formula for the downloadable file at \fIURL\fR and opens it in $EDITOR\. Homebrew will attempt to automatically derive the formula name and version, if it fails, you\'ll have to make your own template\. I suggest copying wget\'s\.
|
Generate a formula for the downloadable file at \fIURL\fR and opens it in $EDITOR\. Homebrew will attempt to automatically derive the formula name and version, if it fails, you\'ll have to make your own template\. I suggest copying wget\'s\.
|
||||||
.
|
.
|
||||||
.IP
|
.IP
|
||||||
If \fB\-\-cache\fR is passed, Homebrew will download the \fIURL\fR to the cache and add the MD5 to the formula for you\.
|
If \fB\-\-no\-fetch\fR is passed, Homebrew will not download \fIURL\fR to the cache and will thus not add the MD5 to the formula for you\.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
\fBedit\fR \fIformula\fR
|
\fBedit\fR \fIformula\fR
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user