aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/download_strategy.rb
diff options
context:
space:
mode:
authorJack Nagel2014-12-22 00:43:02 -0500
committerJack Nagel2014-12-22 00:43:02 -0500
commit6378c2c1ccd9cf27b6fc546976a62e4d6d391211 (patch)
treee438d53ddb5a85c55f0d8b71eea69c8f1d512efd /Library/Homebrew/download_strategy.rb
parent0236384c6d94ed6159383032f753de9d0ab2f74f (diff)
downloadhomebrew-6378c2c1ccd9cf27b6fc546976a62e4d6d391211.tar.bz2
Assume CVS module name when none is given
Diffstat (limited to 'Library/Homebrew/download_strategy.rb')
-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 3f94ccbd1..1e3070217 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -645,6 +645,8 @@ class CVSDownloadStrategy < VCSDownloadStrategy
if meta.key?(:module)
@module = meta.fetch(:module)
+ elsif @url !~ %r[:[^/]+$]
+ @module = name
else
@module, @url = split_url(@url)
end