From 0f60f76f26ca9fe26e1c10c72905a878a58e3c96 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sat, 19 Dec 2015 18:53:20 +0800 Subject: [PATCH] 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. --- Library/Homebrew/cmd/audit.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index c9cd191894..b65d3eba22 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -790,9 +790,10 @@ class FormulaAuditor problem "Use MacOS.version instead of MACOS_VERSION" end - if line =~ /MACOS_FULL_VERSION/ - problem "Use MacOS.full_version instead of MACOS_FULL_VERSION" - end + # TODO: comment out this after core code and formulae separation. + # if line =~ /MACOS_FULL_VERSION/ + # problem "Use MacOS.full_version instead of MACOS_FULL_VERSION" + # end cats = %w[leopard snow_leopard lion mountain_lion].join("|") if line =~ /MacOS\.(?:#{cats})\?/