aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-02 20:35:41 -0600
committerJack Nagel2014-03-02 20:35:41 -0600
commit717af78ce2cd6d07fd303eb10da8847277af9957 (patch)
treee65e069efa23d1e48123e5aa831bd67dd1c452dc /Library
parent105095f8b5d5114c0dcc8dffc386f15b1753ec19 (diff)
downloadhomebrew-717af78ce2cd6d07fd303eb10da8847277af9957.tar.bz2
Stop mutating build options in Tab.create
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/tab.rb7
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,