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
115ffb22
Commit
115ffb22
authored
14 years ago
by
Adam Vandenberg
Browse files
Options
Downloads
Patches
Plain Diff
brew doctor - look for MacGPG2 installed via the .mpkg
parent
1bf407dd
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/brew_doctor.rb
+13
-0
13 additions, 0 deletions
Library/Homebrew/brew_doctor.rb
with
13 additions
and
0 deletions
Library/Homebrew/brew_doctor.rb
+
13
−
0
View file @
115ffb22
...
...
@@ -28,6 +28,18 @@ def is_prefix? prefix, longer_string
longer_string
.
to_s
[
0
,
p
.
length
]
==
p
end
# Installing MacGPG2 interferes with Homebrew in a big way
# http://sourceforge.net/projects/macgpg2/files/
def
check_for_macgpg2
if
File
.
exist?
"/Applications/start-gpg-agent.app"
puts
<<-
EOS
.
undent
If you have installed MacGPG2 via the package installer, several other
checks in this script will turn up problems, such as stray .dylibs in
/usr/local and permissions issues with share and man in /usr/local/.
EOS
end
end
def
check_for_stray_dylibs
unbrewed_dylibs
=
Dir
[
'/usr/local/lib/*.dylib'
].
select
{
|
f
|
File
.
file?
f
and
not
File
.
symlink?
f
}
...
...
@@ -522,6 +534,7 @@ def brew_doctor
check_usr_bin_ruby
check_homebrew_prefix
check_for_macgpg2
check_for_stray_dylibs
check_gcc_versions
check_cc_symlink
...
...
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