aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-04-10 09:43:17 -0700
committerAdam Vandenberg2010-07-08 22:41:51 -0700
commitbb718794feaf0edffad112beebf0af4978c6b834 (patch)
tree0a6816b914ace076b486a8de1213e8ae29ba7166 /Library
parentf09cccd34025c02d1d6c84bb5cf9cdcc2fa3a177 (diff)
downloadhomebrew-bb718794feaf0edffad112beebf0af4978c6b834.tar.bz2
Comment the detect_download_strategy patterns.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 48205deab..3ec36cb54 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -384,16 +384,20 @@ end
def detect_download_strategy url
case url
+ # We use a special URL pattern for cvs
when %r[^cvs://] then CVSDownloadStrategy
+ # Standard URLs
+ when %r[^bzr://] then BazaarDownloadStrategy
+ when %r[^git://] then GitDownloadStrategy
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
+ # Some well-known source hosts
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
+ # Otherwise just try to download
else CurlDownloadStrategy
end
end