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
af94c4fc
Commit
af94c4fc
authored
8 years ago
by
Baptiste Fontaine
Browse files
Options
Downloads
Patches
Plain Diff
pull: skip non-ruby files when collecting formulae names
Closes #377. Signed-off-by:
Baptiste Fontaine
<
b@ptistefontaine.fr
>
parent
cad85754
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/pull.rb
+9
-7
9 additions, 7 deletions
Library/Homebrew/cmd/pull.rb
with
9 additions
and
7 deletions
Library/Homebrew/cmd/pull.rb
+
9
−
7
View file @
af94c4fc
...
...
@@ -113,13 +113,9 @@ module Homebrew
"git"
,
"diff-tree"
,
"-r"
,
"--name-only"
,
"--diff-filter=AM"
,
orig_revision
,
"HEAD"
,
"--"
,
tap
.
formula_dir
.
to_s
).
each_line
do
|
line
|
next
unless
line
.
end_with?
".rb
\n
"
name
=
"
#{
tap
.
name
}
/
#{
File
.
basename
(
line
.
chomp
,
".rb"
)
}
"
begin
changed_formulae_names
<<
name
# Make sure we catch syntax errors.
rescue
Exception
next
end
changed_formulae_names
<<
name
end
end
...
...
@@ -127,7 +123,13 @@ module Homebrew
changed_formulae_names
.
each
do
|
name
|
next
if
ENV
[
"HOMEBREW_DISABLE_LOAD_FORMULA"
]
f
=
Formula
[
name
]
begin
f
=
Formula
[
name
]
# Make sure we catch syntax errors.
rescue
Exception
next
end
if
ARGV
.
include?
"--bottle"
if
f
.
bottle_unneeded?
ohai
"
#{
f
}
: skipping unneeded bottle."
...
...
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