diff options
| author | Adam Vandenberg | 2010-03-22 21:19:20 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-03-22 21:19:20 -0700 |
| commit | 34f5e481c19a0a5558c04a69d0b97f1e2a20cd32 (patch) | |
| tree | 9520239054fe074d406db0270329529490aace85 /Library/Homebrew/formula.rb | |
| parent | 412ee04bdecbe9a4d049bdff9b8ffc5880305dcc (diff) | |
| download | homebrew-34f5e481c19a0a5558c04a69d0b97f1e2a20cd32.tar.bz2 | |
Add md5 on 'brew create' if we can figure it out.
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 9d1617ed4..9f7137507 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -134,19 +134,7 @@ class Formula # reimplement if we don't autodetect the download strategy you require def download_strategy - case url - when %r[^cvs://] then CVSDownloadStrategy - when %r[^hg://] then MercurialDownloadStrategy - when %r[^svn://] then SubversionDownloadStrategy - when %r[^svn+http://] then SubversionDownloadStrategy - when %r[^git://] then GitDownloadStrategy - when %r[^bzr://] then BazaarDownloadStrategy - when %r[^https?://(.+?\.)?googlecode\.com/hg] then MercurialDownloadStrategy - when %r[^https?://(.+?\.)?googlecode\.com/svn] then SubversionDownloadStrategy - when %r[^https?://(.+?\.)?sourceforge\.net/svnroot/] then SubversionDownloadStrategy - when %r[^http://svn.apache.org/repos/] then SubversionDownloadStrategy - else CurlDownloadStrategy - end + detect_download_strategy url end # tell the user about any caveats regarding this package, return a string |
