Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
2f85acfe
Commit
2f85acfe
authored
13 years ago
by
Jack Nagel
Browse files
Options
Downloads
Patches
Plain Diff
doctor: warn about expired SSL certs on Leopard
Signed-off-by:
Jack Nagel
<
jacknagel@gmail.com
>
parent
e0c53c56
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/cmd/doctor.rb
+18
-0
18 additions, 0 deletions
Library/Homebrew/cmd/doctor.rb
with
18 additions
and
0 deletions
Library/Homebrew/cmd/doctor.rb
+
18
−
0
View file @
2f85acfe
...
...
@@ -759,6 +759,23 @@ def check_git_status
end
end
def
check_for_leopard_ssl
if
MacOS
.
leopard?
and
not
ENV
[
'GIT_SSL_NO_VERIFY'
]
puts
<<-
EOS
.
undent
The version of libcurl provided with Mac OS X Leopard has outdated
SSL certificates.
This can cause problems when running Homebrew commands that use Git to
fetch over HTTPS, e.g. `brew update` or installing formulae that perform
Git checkouts.
You can force Git to ignore these errors by setting $GIT_SSL_NO_VERIFY.
export GIT_SSL_NO_VERIFY=1
EOS
end
end
module
Homebrew
extend
self
def
doctor
old_stdout
=
$stdout
...
...
@@ -802,6 +819,7 @@ module Homebrew extend self
check_tmpdir
check_missing_deps
check_git_status
check_for_leopard_ssl
ensure
$stdout
=
old_stdout
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment