download_strategy: allow anoncvs.
Closes Homebrew/homebrew#38965. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
332497b154
commit
da9e481205
@ -688,7 +688,8 @@ class CVSDownloadStrategy < VCSDownloadStrategy
|
|||||||
|
|
||||||
def clone_repo
|
def clone_repo
|
||||||
HOMEBREW_CACHE.cd do
|
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
|
quiet_safe_system cvspath, { :quiet_flag => "-Q" }, "-d", @url, "checkout", "-d", cache_filename, @module
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user