Skip to content
Snippets Groups Projects
Commit 02cd2c89 authored by Martin Afanasjew's avatar Martin Afanasjew
Browse files

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.
parent b0e39203
No related branches found
No related tags found
No related merge requests found
......@@ -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) }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment