From e0639f1588752d66e3d0ecb991274f23247b783f Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sun, 13 Mar 2011 12:52:41 +0000 Subject: [PATCH] Replace create --cache with create --no-fetch Because since 0.8 we do the opposite, ie. download by default. --- Library/Homebrew/cmd/create.rb | 2 +- share/man/man1/brew.1 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/cmd/create.rb b/Library/Homebrew/cmd/create.rb index 74ba98e1fc..39f8acb926 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 06f0d707e9..8742ed17ee 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