aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/formula.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 7ca927313..b1f3df267 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -25,6 +25,7 @@ class Formula
attr_reader :buildpath, :testpath
attr_accessor :local_bottle_path
+ attr_accessor :build
def initialize(name, path, spec)
@name = name
@@ -38,6 +39,7 @@ class Formula
@active_spec = determine_active_spec(spec)
validate_attributes :url, :name, :version
@pkg_version = PkgVersion.new(version, revision)
+ @build = active_spec.build
@pin = FormulaPin.new(self)
end
@@ -109,10 +111,6 @@ class Formula
active_spec.option_defined?(name)
end
- def build
- active_spec.build
- end
-
# if the dir is there, but it's empty we consider it not installed
def installed?
(dir = installed_prefix).directory? && dir.children.length > 0