diff options
| author | Xu Cheng | 2015-12-19 18:53:20 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-12-19 21:14:12 +0800 |
| commit | 0f60f76f26ca9fe26e1c10c72905a878a58e3c96 (patch) | |
| tree | c058a065e792adef63a8cb83860cdd3550977a09 /Library | |
| parent | e00216e4e5be5a0e53da1856d19df586baeb3363 (diff) | |
| download | brew-0f60f76f26ca9fe26e1c10c72905a878a58e3c96.tar.bz2 | |
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.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index c9cd19189..b65d3eba2 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})\?/ |
