From 3ac74331a86d031179c3e25fe46bcb9f292dacc1 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Fri, 26 Jul 2013 23:51:48 -0700 Subject: 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. --- Library/Homebrew/build.rb | 1 + Library/Homebrew/formula_installer.rb | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3