diff options
| author | Misty De Meo | 2013-10-22 22:21:59 -0700 |
|---|---|---|
| committer | Misty De Meo | 2013-10-26 21:54:29 -0700 |
| commit | a90b5cda0c2ecdee373bf17a61599912184f4307 (patch) | |
| tree | 9dee818bdb1d01f0045e1178140e0dfe6dbafbea /Library/Homebrew/tab.rb | |
| parent | ef5b82c65f3935abab266990ee4caaf154d1a6f4 (diff) | |
| download | homebrew-a90b5cda0c2ecdee373bf17a61599912184f4307.tar.bz2 | |
Move stdlib tracking postinstall
This moves stdlib tracking after the install completes, which allows
the tracking to have access to the actual stdlib in use.
This unfortunately means that builds can error out *after* a build,
resulting in wasted time; however, it reduces false positives, and the
overall user experience is still likely to be better this way.
Diffstat (limited to 'Library/Homebrew/tab.rb')
| -rw-r--r-- | Library/Homebrew/tab.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index 708e10346..5e4d24693 100644 --- a/Library/Homebrew/tab.rb +++ b/Library/Homebrew/tab.rb @@ -10,7 +10,7 @@ require 'utils/json' class Tab < OpenStruct FILENAME = 'INSTALL_RECEIPT.json' - def self.create f, compiler, args + def self.create f, compiler, stdlib, args f.build.args = args sha = HOMEBREW_REPOSITORY.cd do @@ -25,7 +25,8 @@ class Tab < OpenStruct :tapped_from => f.tap, :time => Time.now.to_i, # to_s would be better but Ruby has no from_s function :P :HEAD => sha, - :compiler => compiler + :compiler => compiler, + :stdlib => stdlib end def self.from_file path |
