diff options
Diffstat (limited to 'Library/Homebrew/formula_installer.rb')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index e96ac69e9..b53632993 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -471,8 +471,11 @@ class FormulaInstaller args << "--debug" if debug? args << "--cc=#{ARGV.cc}" if ARGV.cc args << "--env=#{ARGV.env}" if ARGV.env - args << "--HEAD" if ARGV.build_head? - args << "--devel" if ARGV.build_devel? + + case f.active_spec + when f.head then args << "--HEAD" + when f.devel then args << "--devel" + end f.build.each do |opt, _| name = opt.name[/\A(.+)=\z$/, 1] |
