diff options
| author | Misty De Meo | 2013-07-26 23:51:48 -0700 |
|---|---|---|
| committer | Misty De Meo | 2013-09-01 13:19:13 -0700 |
| commit | 3ac74331a86d031179c3e25fe46bcb9f292dacc1 (patch) | |
| tree | a50ba40aba196be4d38d145a03f468039dfca200 | |
| parent | ef1d9c0cd04c21b5b19cae17e83bbdc6ef28d712 (diff) | |
| download | brew-3ac74331a86d031179c3e25fe46bcb9f292dacc1.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.
| -rwxr-xr-x | Library/Homebrew/build.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 2 |
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 |
