From 02cd2c899a02b1271cf6e4dd8ce816e5513d9f9c Mon Sep 17 00:00:00 2001 From: Martin Afanasjew Date: Wed, 16 Dec 2015 02:12:50 +0100 Subject: [PATCH] bottle: fix Ruby 1.8 breakage `OpenStruct` (of which `Tab` is a subclass) doesn't support subscripting with square brackets. Use normal dot notation to restore compatibility. --- Library/Homebrew/cmd/bottle.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index da915af153..fe2829c191 100644 --- a/Library/Homebrew/cmd/bottle.rb +++ b/Library/Homebrew/cmd/bottle.rb @@ -203,9 +203,9 @@ module Homebrew tab = Tab.for_keg(keg) original_tab = tab.dup - tab["poured_from_bottle"] = false - tab["HEAD"] = nil - tab["time"] = nil + tab.poured_from_bottle = false + tab.HEAD = nil + tab.time = nil tab.write keg.find {|k| File.utime(File.atime(k), formula_source_time, k) }