aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2013-07-26 23:51:48 -0700
committerMisty De Meo2013-09-01 13:19:13 -0700
commit4bbe6172c013d66100d20ce4a591b10e72c38528 (patch)
tree95ce652f7412f009864b071b679bbd09cef79cd0 /Library
parent733076ec22a21bcc481afc38fc79fd0ea40700a0 (diff)
downloadhomebrew-4bbe6172c013d66100d20ce4a591b10e72c38528.tar.bz2
Move Tab creation into build process
The parent process doesn't have access to the selected compiler, which will be important in the next commit. Fortunately the child process already has a filtered and massaged ARGV, so it has enough information to build the tab itself.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/build.rb1
-rw-r--r--Library/Homebrew/formula_installer.rb2
2 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index 6d812ea68..ac60221d9 100755
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -170,6 +170,7 @@ class Build
begin
f.install
+ Tab.create(f, Options.coerce(ARGV.options_only)).write
rescue Exception => e
if ARGV.debug?
debrew e, f
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 8201a1bc1..aff8d29fc 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -355,8 +355,6 @@ class FormulaInstaller
raise "Empty installation" if Dir["#{f.prefix}/*"].empty?
- Tab.create(f, build_argv).write # INSTALL_RECEIPT.json
-
rescue Exception
ignore_interrupts do
# any exceptions must leave us with nothing installed