From 34f5e481c19a0a5558c04a69d0b97f1e2a20cd32 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 22 Mar 2010 21:19:20 -0700 Subject: Add md5 on 'brew create' if we can figure it out. --- Library/Homebrew/formula.rb | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'Library/Homebrew/formula.rb') 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 -- cgit v1.2.3