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
b05351d0
Commit
b05351d0
authored
10 years ago
by
Jack Nagel
Browse files
Options
Downloads
Patches
Plain Diff
Reorganize post-install checks so we can share more code
parent
634d6769
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Library/Homebrew/cmd/audit.rb
+0
-13
0 additions, 13 deletions
Library/Homebrew/cmd/audit.rb
Library/Homebrew/formula_cellar_checks.rb
+13
-0
13 additions, 0 deletions
Library/Homebrew/formula_cellar_checks.rb
Library/Homebrew/formula_installer.rb
+6
-38
6 additions, 38 deletions
Library/Homebrew/formula_installer.rb
with
19 additions
and
51 deletions
Library/Homebrew/cmd/audit.rb
+
0
−
13
View file @
b05351d0
...
...
@@ -554,19 +554,6 @@ class FormulaAuditor
problem
(
output
)
if
output
end
def
audit_installed
audit_check_output
(
check_manpages
)
audit_check_output
(
check_infopages
)
audit_check_output
(
check_jars
)
audit_check_output
(
check_non_libraries
)
audit_check_output
(
check_non_executables
(
f
.
bin
))
audit_check_output
(
check_generic_executables
(
f
.
bin
))
audit_check_output
(
check_non_executables
(
f
.
sbin
))
audit_check_output
(
check_generic_executables
(
f
.
sbin
))
audit_check_output
(
check_shadowed_headers
)
audit_check_output
(
check_easy_install_pth
(
f
.
lib
))
end
def
audit
audit_file
audit_specs
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/formula_cellar_checks.rb
+
13
−
0
View file @
b05351d0
...
...
@@ -133,6 +133,19 @@ module FormulaCellarChecks
EOS
end
def
audit_installed
audit_check_output
(
check_manpages
)
audit_check_output
(
check_infopages
)
audit_check_output
(
check_jars
)
audit_check_output
(
check_non_libraries
)
audit_check_output
(
check_non_executables
(
f
.
bin
))
audit_check_output
(
check_generic_executables
(
f
.
bin
))
audit_check_output
(
check_non_executables
(
f
.
sbin
))
audit_check_output
(
check_generic_executables
(
f
.
sbin
))
audit_check_output
(
check_shadowed_headers
)
audit_check_output
(
check_easy_install_pth
(
f
.
lib
))
end
private
def
relative_glob
(
dir
,
pattern
)
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/formula_installer.rb
+
6
−
38
View file @
b05351d0
...
...
@@ -378,14 +378,7 @@ class FormulaInstaller
def
caveats
return
if
only_deps?
if
ARGV
.
homebrew_developer?
and
not
f
.
keg_only?
audit_bin
audit_sbin
audit_lib
audit_man
audit_info
audit_include
end
audit_installed
if
ARGV
.
homebrew_developer?
and
not
f
.
keg_only?
c
=
Caveats
.
new
(
f
)
...
...
@@ -637,42 +630,17 @@ class FormulaInstaller
FileUtils
.
rm_rf
f
.
bottle_prefix
end
## checks
def
print_check_output
(
output
)
def
audit_check_output
(
output
)
if
output
opoo
output
@show_summary_heading
=
true
end
end
def
audit_bin
print_check_output
(
check_PATH
(
f
.
bin
))
print_check_output
(
check_non_executables
(
f
.
bin
))
print_check_output
(
check_generic_executables
(
f
.
bin
))
end
def
audit_sbin
print_check_output
(
check_PATH
(
f
.
sbin
))
print_check_output
(
check_non_executables
(
f
.
sbin
))
print_check_output
(
check_generic_executables
(
f
.
sbin
))
end
def
audit_lib
print_check_output
(
check_jars
)
print_check_output
(
check_non_libraries
)
end
def
audit_man
print_check_output
(
check_manpages
)
end
def
audit_info
print_check_output
(
check_infopages
)
end
def
audit_include
print_check_output
(
check_shadowed_headers
)
def
audit_installed
audit_check_output
(
check_PATH
(
f
.
bin
))
audit_check_output
(
check_PATH
(
f
.
sbin
))
super
end
private
...
...
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