aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2012-05-10 07:09:51 -0700
committerAdam Vandenberg2012-05-10 07:09:51 -0700
commitc3eebfc7d29ba8d7ff1d1d1a677fdc2d6183c3ab (patch)
tree8a9f46e7719dbb301655fe3655544287b4689fb3
parentf92f1622a5b2f67faff14141c0aec0484408597c (diff)
downloadhomebrew-c3eebfc7d29ba8d7ff1d1d1a677fdc2d6183c3ab.tar.bz2
Detect http://svn... as svn
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 41c4fdeb3..7d5e7af68 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -579,6 +579,8 @@ def detect_download_strategy url
when %r[^https?://(.+?\.)?sourceforge\.net/svnroot/] then SubversionDownloadStrategy
when %r[^http://svn.apache.org/repos/] then SubversionDownloadStrategy
when %r[^http://www.apache.org/dyn/closer.cgi] then CurlApacheMirrorDownloadStrategy
+ # Common URL patterns
+ when %r[^https?://svn\.] then SubversionDownloadStrategy
# Otherwise just try to download
else CurlDownloadStrategy
end