diff options
| author | Jack Nagel | 2013-01-23 00:26:20 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-01-26 11:37:00 -0600 |
| commit | 8d0c65e47b69ac7625e5b467a5c4ca7feb632d0f (patch) | |
| tree | 724bf1990b1b4b7a3ff5f10fa575296aeaef8b8c /Library/Homebrew/tab.rb | |
| parent | 76c01e91e43f2403635f69be253d2ef6727b065d (diff) | |
| download | homebrew-8d0c65e47b69ac7625e5b467a5c4ca7feb632d0f.tar.bz2 | |
Move option comparison into BuildOptions
Diffstat (limited to 'Library/Homebrew/tab.rb')
| -rw-r--r-- | Library/Homebrew/tab.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index ab0706fdd..7e229393f 100644 --- a/Library/Homebrew/tab.rb +++ b/Library/Homebrew/tab.rb @@ -10,14 +10,16 @@ class Tab < OpenStruct FILENAME = 'INSTALL_RECEIPT.json' def self.create f, args + f.build.args = args + sha = HOMEBREW_REPOSITORY.cd do `git rev-parse --verify -q HEAD 2>/dev/null`.chuzzle end - Tab.new :used_options => args.used_options(f), - :unused_options => args.unused_options(f), + Tab.new :used_options => f.build.used_options, + :unused_options => f.build.unused_options, :tabfile => f.prefix.join(FILENAME), - :built_as_bottle => !!args.build_bottle?, + :built_as_bottle => !!ARGV.build_bottle?, :tapped_from => f.tap, :time => Time.now.to_i, # to_s would be better but Ruby has no from_s function :P :HEAD => sha |
