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
ea85812c
Commit
ea85812c
authored
11 years ago
by
Jack Nagel
Browse files
Options
Downloads
Patches
Plain Diff
Reduce the number of ways options can be passed to the installer
parent
a12d3918
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Library/Homebrew/cmd/upgrade.rb
+1
-1
1 addition, 1 deletion
Library/Homebrew/cmd/upgrade.rb
Library/Homebrew/formula_installer.rb
+6
-10
6 additions, 10 deletions
Library/Homebrew/formula_installer.rb
with
7 additions
and
11 deletions
Library/Homebrew/cmd/upgrade.rb
+
1
−
1
View file @
ea85812c
...
...
@@ -63,7 +63,7 @@ module Homebrew extend self
outdated_keg
=
Keg
.
new
(
f
.
linked_keg
.
realpath
)
rescue
nil
installer
=
FormulaInstaller
.
new
(
f
)
installer
.
tab
=
tab
installer
.
options
|=
tab
.
used_options
installer
.
show_header
=
false
oh1
"Upgrading
#{
f
.
name
}
"
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/formula_installer.rb
+
6
−
10
View file @
ea85812c
...
...
@@ -16,7 +16,7 @@ class FormulaInstaller
include
FormulaCellarChecks
attr_reader
:f
attr_accessor
:tab
,
:options
,
:ignore_deps
,
:only_deps
attr_accessor
:options
,
:ignore_deps
,
:only_deps
attr_accessor
:show_summary_heading
,
:show_header
def
initialize
ff
...
...
@@ -25,7 +25,6 @@ class FormulaInstaller
@ignore_deps
=
ARGV
.
ignore_deps?
||
ARGV
.
interactive?
@only_deps
=
ARGV
.
only_deps?
@options
=
Options
.
new
@tab
=
Tab
.
dummy_tab
(
ff
)
@@attempted
||=
Set
.
new
...
...
@@ -39,8 +38,7 @@ class FormulaInstaller
def
pour_bottle?
install_bottle_options
=
{
:warn
=>
false
}
return
false
if
@pour_failed
tab
.
used_options
.
empty?
&&
options
.
empty?
&&
\
install_bottle?
(
f
,
install_bottle_options
)
options
.
empty?
&&
install_bottle?
(
f
,
install_bottle_options
)
end
def
verify_deps_exist
...
...
@@ -294,8 +292,9 @@ class FormulaInstaller
outdated_keg
=
Keg
.
new
(
df
.
linked_keg
.
realpath
)
rescue
nil
fi
=
FormulaInstaller
.
new
(
df
)
fi
.
tab
=
Tab
.
for_formula
(
dep
.
to_formula
)
fi
.
options
=
dep
.
options
|
inherited_options
fi
.
options
|=
Tab
.
for_formula
(
df
).
used_options
fi
.
options
|=
dep
.
options
fi
.
options
|=
inherited_options
fi
.
ignore_deps
=
true
fi
.
only_deps
=
false
fi
.
show_header
=
false
...
...
@@ -374,10 +373,7 @@ class FormulaInstaller
def
build_argv
opts
=
Options
.
coerce
(
ARGV
.
options_only
)
unless
opts
.
include?
'--fresh'
opts
.
concat
(
options
)
# from a dependent formula
opts
.
concat
(
tab
.
used_options
)
# from a previous install
end
opts
.
concat
(
options
)
unless
opts
.
include?
"--fresh"
opts
<<
Option
.
new
(
"--build-from-source"
)
# don't download bottle
end
...
...
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