diff options
| author | Martin Afanasjew | 2015-12-16 02:12:50 +0100 |
|---|---|---|
| committer | Martin Afanasjew | 2015-12-16 02:12:50 +0100 |
| commit | 02cd2c899a02b1271cf6e4dd8ce816e5513d9f9c (patch) | |
| tree | 096d36320d0893c8d9e16dc6dc76bfd6d738c68b /Library | |
| parent | b0e39203fe38a7498efdc4e0447b6905701230c1 (diff) | |
| download | brew-02cd2c899a02b1271cf6e4dd8ce816e5513d9f9c.tar.bz2 | |
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.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/bottle.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index da915af15..fe2829c19 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) } |
