aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/build.rb
diff options
context:
space:
mode:
authorJack Nagel2014-06-19 21:35:47 -0500
committerJack Nagel2014-06-20 21:32:36 -0500
commit10fda9e9b910f9161a8f174e13cf0f31edfbde80 (patch)
tree422a9100abf73d7ce1dfc6225436cac695db83d1 /Library/Homebrew/build.rb
parent5beaa512e61f7222d4f19569b8118f9e1f02a18f (diff)
downloadbrew-10fda9e9b910f9161a8f174e13cf0f31edfbde80.tar.bz2
Decouple spec selection from ARGV
Diffstat (limited to 'Library/Homebrew/build.rb')
-rw-r--r--Library/Homebrew/build.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index 5a320f3b8..03a0189d9 100644
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -40,7 +40,8 @@ def main
# can be inconvenient for the user. But we need to be safe.
system "/usr/bin/sudo", "-k"
- Build.new(Formula.factory($0)).install
+ formula = Formulary.factory($0, ARGV.spec)
+ Build.new(formula).install
rescue Exception => e
unless error_pipe.nil?
e.continuation = nil if ARGV.debug?