aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Nixon2015-04-23 04:08:14 -0700
committerMike McQuaid2015-04-24 09:54:40 +0100
commit06e0a2ee843d953baed63d53d99570fb5c2f17a6 (patch)
tree9b5df303f4a25c288b0e046dbedc56a2c5f4ac99
parent7d519430911a1bea712a50348c4a06eb50fa7e7b (diff)
downloadhomebrew-06e0a2ee843d953baed63d53d99570fb5c2f17a6.tar.bz2
download_strategy: allow anoncvs.
Closes #38965. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Homebrew/download_strategy.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 589147c31..40e2314a2 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -688,7 +688,8 @@ class CVSDownloadStrategy < VCSDownloadStrategy
def clone_repo
HOMEBREW_CACHE.cd do
- quiet_safe_system cvspath, { :quiet_flag => "-Q" }, "-d", @url, "login"
+ # Login is only needed (and allowed) with pserver; skip for anoncvs.
+ quiet_safe_system cvspath, { :quiet_flag => "-Q" }, "-d", @url, "login" if @url.include? "pserver"
quiet_safe_system cvspath, { :quiet_flag => "-Q" }, "-d", @url, "checkout", "-d", cache_filename, @module
end
end