diff options
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 337916a0a..3d3c23ec3 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -437,7 +437,7 @@ class Formula def requirements; self.class.dependencies.requirements; end def env - @env ||= BuildEnvironment.new(self.class.environments) + @env ||= self.class.env end def conflicts @@ -710,12 +710,10 @@ private @stable.mirror(val) end - def environments - @environments ||= [] - end - def env *settings - environments.concat [settings].flatten + @env ||= BuildEnvironment.new + settings.each { |s| @env << s } + @env end def dependencies |
