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
d0ad0970
Commit
d0ad0970
authored
8 years ago
by
Alyssa Ross
Browse files
Options
Downloads
Patches
Plain Diff
uninstall: remove duplicated method
This was moved to Keg, but looks like I forgot to get rid of it here.
parent
aff5f42c
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/uninstall.rb
+0
-33
0 additions, 33 deletions
Library/Homebrew/cmd/uninstall.rb
with
0 additions
and
33 deletions
Library/Homebrew/cmd/uninstall.rb
+
0
−
33
View file @
d0ad0970
...
...
@@ -92,39 +92,6 @@ module Homebrew
true
end
# Will return some kegs, and some dependencies, if they're present.
# For efficiency, we don't bother trying to get complete data.
def
find_some_installed_dependents
(
kegs
)
kegs
.
each
do
|
keg
|
dependents
=
keg
.
installed_dependents
-
kegs
dependents
.
map!
{
|
d
|
"
#{
d
.
name
}
#{
d
.
version
}
"
}
return
[
keg
],
dependents
if
dependents
.
any?
end
# Find formulae that didn't have dependencies saved in all of their kegs,
# so need them to be calculated now.
#
# This happens after the initial dependency check because it's sloooow.
remaining_formulae
=
Formula
.
installed
.
select
{
|
f
|
f
.
installed_kegs
.
any?
{
|
k
|
Tab
.
for_keg
(
k
).
runtime_dependencies
.
nil?
}
}
keg_names
=
kegs
.
map
(
&
:name
)
kegs_by_name
=
kegs
.
group_by
(
&
:to_formula
)
remaining_formulae
.
each
do
|
dependent
|
required
=
dependent
.
missing_dependencies
(
hide:
keg_names
)
required
.
select!
do
|
f
|
kegs_by_name
.
key?
(
f
)
end
next
unless
required
.
any?
required_kegs
=
required
.
map
{
|
f
|
kegs_by_name
[
f
].
sort_by
(
&
:version
).
last
}
return
required_kegs
,
[
dependent
]
end
nil
end
def
rm_pin
(
rack
)
Formulary
.
from_rack
(
rack
).
unpin
rescue
...
...
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