aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-01-18 16:10:28 +0000
committerMike McQuaid2017-01-18 16:10:28 +0000
commitf0249643d47f1dee4a0d08c440eb3afd6da3558a (patch)
treec9c93e2d8c5ab9bcf197591198544d2e49be6026 /Library
parent5424db12637917c159aca231d7e18ecfdcc8315b (diff)
downloadbrew-f0249643d47f1dee4a0d08c440eb3afd6da3558a.tar.bz2
formula_installer: use attr_accessor for installed_*
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/upgrade.rb2
-rw-r--r--Library/Homebrew/formula_installer.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb
index d3b9784b1..ce892f85c 100644
--- a/Library/Homebrew/cmd/upgrade.rb
+++ b/Library/Homebrew/cmd/upgrade.rb
@@ -110,7 +110,7 @@ module Homebrew
fi.installed_on_request = !ARGV.named.empty?
if tab
fi.installed_as_dependency = tab.installed_as_dependency
- #fi.installed_on_request ||= tab.installed_on_request
+ fi.installed_on_request ||= tab.installed_on_request
end
fi.prelude
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index d9127f654..e8f0e4bf8 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -32,11 +32,11 @@ class FormulaInstaller
attr_reader :formula
attr_accessor :options, :build_bottle, :invalid_option_names
+ attr_accessor :installed_as_dependency, :installed_on_request
mode_attr_accessor :show_summary_heading, :show_header
mode_attr_accessor :build_from_source, :force_bottle
mode_attr_accessor :ignore_deps, :only_deps, :interactive, :git
mode_attr_accessor :verbose, :debug, :quieter
- mode_attr_accessor :installed_as_dependency, :installed_on_request
def initialize(formula)
@formula = formula