diff options
| author | Jack Nagel | 2014-12-18 18:04:22 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-12-19 12:28:18 -0500 |
| commit | 5fea6adfc791ff3a1564550d24b677b528e9d2f9 (patch) | |
| tree | a92251d586d5ab4b16d2d2fc25354ceccc7a6162 /Library | |
| parent | 7bae04d6751e4168bf88477f73632dd36b9d6213 (diff) | |
| download | homebrew-5fea6adfc791ff3a1564550d24b677b528e9d2f9.tar.bz2 | |
Deprecate made-up URL schemes
This deprecates URLs that begin with the following fake URL schemes:
bzr://
cvs://
hg://
fossil://
svn+http://
Despite their appearance, they are not actually accepted by the
corresponding tools. They exist only as hints to the download strategy
detection code, and are stripped from the URL before the URL is handed
off to the VCS program.
This is not documented, and may lead one to believe it is a valid URL
that can be used elsewhere, when it actually only works inside Homebrew.
We have a better mechanism for specifying the download strategy that is
straightforward and explicit:
:using => :hg
Recommend that instead.
Closes #35114.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 82e53a35a..e77e14cfe 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -623,6 +623,10 @@ class ResourceAuditor end def audit_download_strategy + if url =~ %r[^(cvs|bzr|hg|fossil)://] || url =~ %r[^(svn)\+http://] + problem "Use of the #{$&} scheme is deprecated, pass `:using => :#{$1}` instead" + end + return unless using if using == :ssl3 || using == CurlSSL3DownloadStrategy |
