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
3ca68c07
Unverified
Commit
3ca68c07
authored
4 years ago
by
Rylan Polster
Browse files
Options
Downloads
Patches
Plain Diff
Don't tap user-untapped official taps
parent
152eac33
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/brew.rb
+4
-1
4 additions, 1 deletion
Library/Homebrew/brew.rb
Library/Homebrew/extend/os/mac/tap.rb
+3
-0
3 additions, 0 deletions
Library/Homebrew/extend/os/mac/tap.rb
Library/Homebrew/tap.rb
+20
-0
20 additions, 0 deletions
Library/Homebrew/tap.rb
with
27 additions
and
1 deletion
Library/Homebrew/brew.rb
+
4
−
1
View file @
3ca68c07
...
...
@@ -132,7 +132,10 @@ begin
possible_tap
=
OFFICIAL_CMD_TAPS
.
find
{
|
_
,
cmds
|
cmds
.
include?
(
cmd
)
}
possible_tap
=
Tap
.
fetch
(
possible_tap
.
first
)
if
possible_tap
odie
"Unknown command:
#{
cmd
}
"
if
!
possible_tap
||
possible_tap
.
installed?
untapped_official_taps
=
Homebrew
::
Settings
.
read
(:
untapped
)
&
.
split
(
";"
)
||
[]
if
!
possible_tap
||
possible_tap
.
installed?
||
untapped_official_taps
.
include?
(
possible_tap
.
name
)
odie
"Unknown command:
#{
cmd
}
"
end
# Unset HOMEBREW_HELP to avoid confusing the tap
with_env
HOMEBREW_HELP
:
nil
do
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/extend/os/mac/tap.rb
+
3
−
0
View file @
3ca68c07
...
...
@@ -5,6 +5,9 @@ class Tap
def
self
.
install_default_cask_tap_if_necessary
return
false
if
default_cask_tap
.
installed?
untapped_official_taps
=
Homebrew
::
Settings
.
read
(
:untapped
)
&
.
split
(
";"
)
||
[]
return
false
if
untapped_official_taps
.
include?
(
default_cask_tap
.
name
)
default_cask_tap
.
install
true
end
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/tap.rb
+
20
−
0
View file @
3ca68c07
...
...
@@ -326,6 +326,17 @@ class Tap
.
update_from_formula_names!
(
formula_names
)
end
if
official?
untapped
=
Homebrew
::
Settings
.
read
(
:untapped
)
&
.
split
(
";"
)
||
[]
untapped
-=
[
name
]
if
untapped
.
empty?
Homebrew
::
Settings
.
delete
:untapped
else
Homebrew
::
Settings
.
write
:untapped
,
untapped
.
join
(
";"
)
end
end
return
if
clone_target
return
unless
private
?
return
if
quiet
...
...
@@ -374,6 +385,15 @@ class Tap
Commands
.
rebuild_commands_completion_list
clear_cache
return
unless
official?
untapped
=
Homebrew
::
Settings
.
read
(
:untapped
)
&
.
split
(
";"
)
||
[]
return
if
untapped
.
include?
name
untapped
<<
name
Homebrew
::
Settings
.
write
:untapped
,
untapped
.
join
(
";"
)
end
# True if the {#remote} of {Tap} is customized.
...
...
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