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
07bf57b8
Commit
07bf57b8
authored
10 years ago
by
Jack Nagel
Browse files
Options
Downloads
Patches
Plain Diff
Push keg_only special-case into link
parent
f1fc0b78
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/formula_installer.rb
+11
-12
11 additions, 12 deletions
Library/Homebrew/formula_installer.rb
with
11 additions
and
12 deletions
Library/Homebrew/formula_installer.rb
+
11
−
12
View file @
07bf57b8
...
...
@@ -409,18 +409,7 @@ class FormulaInstaller
install_plist
keg
=
Keg
.
new
(
f
.
prefix
)
if
f
.
keg_only?
begin
keg
.
optlink
rescue
Exception
onoe
"Failed to create:
#{
f
.
opt_prefix
}
"
puts
"Things that depend on
#{
f
}
will probably not build."
end
else
link
(
keg
)
end
link
(
keg
)
fix_install_names
(
keg
)
if
OS
.
mac?
post_install
...
...
@@ -547,6 +536,16 @@ class FormulaInstaller
end
def
link
(
keg
)
if
f
.
keg_only?
begin
keg
.
optlink
rescue
Exception
onoe
"Failed to create:
#{
f
.
opt_prefix
}
"
puts
"Things that depend on
#{
f
}
will probably not build."
end
return
end
if
keg
.
linked?
opoo
"This keg was marked linked already, continuing anyway"
keg
.
remove_linked_keg_record
...
...
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