From da9e4812051866f740a24cc47aca0acce0798900 Mon Sep 17 00:00:00 2001 From: Geoff Nixon Date: Thu, 23 Apr 2015 04:08:14 -0700 Subject: download_strategy: allow anoncvs. Closes Homebrew/homebrew#38965. Signed-off-by: Mike McQuaid --- Library/Homebrew/download_strategy.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3