lsyncd: use MACOS_FULL_VERSION

This commit partial reverts beed39e46fa021dd1c133c2c8eaaa81b524e68c7.

For users whose local brew is at around 2015-06-02 to 2015-06-11,
running `brew update` will emit following error:

  Error: undefined method 'full_version' for OS::Mac:Module

This is caused by the same bug described in Homebrew/homebrew#42553.

Let's use `MACOS_FULL_VERSION` for now to restore `brew update` compatibility
for these users.

TODO: revert this commit after core code and formulae separation.
This commit is contained in:
Xu Cheng 2015-12-19 18:53:20 +08:00
parent e00216e4e5
commit 0f60f76f26

View File

@ -790,9 +790,10 @@ class FormulaAuditor
problem "Use MacOS.version instead of MACOS_VERSION" problem "Use MacOS.version instead of MACOS_VERSION"
end end
if line =~ /MACOS_FULL_VERSION/ # TODO: comment out this after core code and formulae separation.
problem "Use MacOS.full_version instead of MACOS_FULL_VERSION" # if line =~ /MACOS_FULL_VERSION/
end # problem "Use MacOS.full_version instead of MACOS_FULL_VERSION"
# end
cats = %w[leopard snow_leopard lion mountain_lion].join("|") cats = %w[leopard snow_leopard lion mountain_lion].join("|")
if line =~ /MacOS\.(?:#{cats})\?/ if line =~ /MacOS\.(?:#{cats})\?/