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
1f86923e
Commit
1f86923e
authored
11 years ago
by
Adam Vandenberg
Browse files
Options
Downloads
Patches
Plain Diff
ignore skip_clean :all
parent
9559e162
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
+2
-1
2 additions, 1 deletion
Library/Homebrew/cmd/audit.rb
Library/Homebrew/formula.rb
+4
-15
4 additions, 15 deletions
Library/Homebrew/formula.rb
Library/Homebrew/formula_installer.rb
+0
-8
0 additions, 8 deletions
Library/Homebrew/formula_installer.rb
with
6 additions
and
24 deletions
Library/Homebrew/cmd/audit.rb
+
2
−
1
View file @
1f86923e
...
...
@@ -447,7 +447,8 @@ class FormulaAuditor
end
if
line
=~
/skip_clean\s+:all/
problem
"`skip_clean :all` is deprecated; brew no longer strips symbols"
problem
"`skip_clean :all` is deprecated; brew no longer strips symbols
\n
"
+
"
\t
Pass explicit paths to prevent Homebrew from removing empty folders."
end
if
line
=~
/depends_on [A-Z][\w:]+\.new$/
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/formula.rb
+
4
−
15
View file @
1f86923e
...
...
@@ -247,12 +247,11 @@ class Formula
end
end
# sometimes the clean
process
breaks things
# sometimes the clean
er
breaks things
# skip cleaning paths in a formula with a class method like this:
# skip_clean
[
bin
+
"foo", lib
+
"bar"
]
#
redefining
skip_clean
? now deprecated
# skip_clean bin
/
"foo", lib
/
"bar"
#
skip_clean
:la
def
skip_clean?
path
return
true
if
self
.
class
.
skip_clean_all?
return
true
if
path
.
extname
==
'.la'
and
self
.
class
.
skip_clean_paths
.
include?
:la
to_check
=
path
.
relative_path_from
(
prefix
).
to_s
self
.
class
.
skip_clean_paths
.
include?
to_check
...
...
@@ -745,20 +744,10 @@ class Formula
def
skip_clean
*
paths
paths
.
flatten!
# :all is deprecated though
if
paths
.
include?
:all
@skip_clean_all
=
true
return
end
# Specifying :all is deprecated and will become an error
skip_clean_paths
.
merge
(
paths
)
end
def
skip_clean_all?
@skip_clean_all
end
def
skip_clean_paths
@skip_clean_paths
||=
Set
.
new
end
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/formula_installer.rb
+
0
−
8
View file @
1f86923e
...
...
@@ -482,14 +482,6 @@ class FormulaInstaller
def
clean
ohai
"Cleaning"
if
ARGV
.
verbose?
if
f
.
class
.
skip_clean_all?
opoo
"skip_clean :all is deprecated"
puts
"Skip clean was commonly used to prevent brew from stripping binaries."
puts
"brew no longer strips binaries, if skip_clean is required to prevent"
puts
"brew from removing empty directories, you should specify exact paths"
puts
"in the formula."
return
end
Cleaner
.
new
(
f
).
clean
rescue
Exception
=>
e
opoo
"The cleaning step did not complete successfully"
...
...
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