diff options
| author | Geoff Nixon | 2015-04-23 04:08:14 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2015-04-24 09:54:40 +0100 |
| commit | da9e4812051866f740a24cc47aca0acce0798900 (patch) | |
| tree | 2fa2addc649d1dc93b3899518625724db07babd6 /Library | |
| parent | 332497b154031cb7ed4413bc2150d488e16c1de3 (diff) | |
| download | brew-da9e4812051866f740a24cc47aca0acce0798900.tar.bz2 | |
download_strategy: allow anoncvs.
Closes Homebrew/homebrew#38965.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 3 |
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 |
