aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-03-22 21:19:20 -0700
committerAdam Vandenberg2010-03-22 21:19:20 -0700
commit34f5e481c19a0a5558c04a69d0b97f1e2a20cd32 (patch)
tree9520239054fe074d406db0270329529490aace85 /Library/Homebrew/formula.rb
parent412ee04bdecbe9a4d049bdff9b8ffc5880305dcc (diff)
downloadhomebrew-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.rb14
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