aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2011-03-13 12:52:41 +0000
committerMax Howell2011-03-13 12:52:41 +0000
commit6530586046b6a850c50f2d7d8aa275202ae63dcb (patch)
tree356556b511e82ad4ef9a14df1053685ba3879bab
parentc8afa69ab69857a38917bd3a0473514dae5ef4b2 (diff)
downloadhomebrew-6530586046b6a850c50f2d7d8aa275202ae63dcb.tar.bz2
Replace create --cache with create --no-fetch
Because since 0.8 we do the opposite, ie. download by default.
-rw-r--r--Library/Homebrew/cmd/create.rb2
-rw-r--r--share/man/man1/brew.14
2 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/create.rb b/Library/Homebrew/cmd/create.rb
index 74ba98e1f..39f8acb92 100644
--- a/Library/Homebrew/cmd/create.rb
+++ b/Library/Homebrew/cmd/create.rb
@@ -85,7 +85,7 @@ class FormulaCreator
puts "Version detected as #{version}."
end
- unless ARGV.include? "--no-md5" and version
+ unless ARGV.include? "--no-fetch" and version
strategy = detect_download_strategy url
@md5 = strategy.new(url, name, version, nil).fetch.md5 if strategy == CurlDownloadStrategy
end
diff --git a/share/man/man1/brew.1 b/share/man/man1/brew.1
index 06f0d707e..8742ed17e 100644
--- a/share/man/man1/brew.1
+++ b/share/man/man1/brew.1
@@ -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\.
.
.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\.
.
.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
\fBedit\fR \fIformula\fR