From f3d3bc436829b5e9212e052cec50cded80cea2df Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 23 Jan 2013 00:26:20 -0600 Subject: Move option comparison into BuildOptions --- Library/Homebrew/tab.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Library/Homebrew/tab.rb') 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 -- cgit v1.2.3