diff options
| author | Jack Nagel | 2014-03-02 20:35:41 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-03-02 20:35:41 -0600 |
| commit | 717af78ce2cd6d07fd303eb10da8847277af9957 (patch) | |
| tree | e65e069efa23d1e48123e5aa831bd67dd1c452dc /Library | |
| parent | 105095f8b5d5114c0dcc8dffc386f15b1753ec19 (diff) | |
| download | homebrew-717af78ce2cd6d07fd303eb10da8847277af9957.tar.bz2 | |
Stop mutating build options in Tab.create
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/tab.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index 5e4d24693..a922f914f 100644 --- a/Library/Homebrew/tab.rb +++ b/Library/Homebrew/tab.rb @@ -11,14 +11,15 @@ class Tab < OpenStruct FILENAME = 'INSTALL_RECEIPT.json' def self.create f, compiler, stdlib, args - f.build.args = args + build = f.build.dup + build.args = args sha = HOMEBREW_REPOSITORY.cd do `git rev-parse --verify -q HEAD 2>/dev/null`.chuzzle end - Tab.new :used_options => f.build.used_options, - :unused_options => f.build.unused_options, + Tab.new :used_options => build.used_options, + :unused_options => build.unused_options, :tabfile => f.prefix.join(FILENAME), :built_as_bottle => !!ARGV.build_bottle?, :poured_from_bottle => false, |
