From 195f77abb0138b4c387ad6dd451ddf9c49152b26 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 5 Nov 2017 15:40:46 +0000 Subject: [PATCH] MACOS_*VERSION: move to compat. --- Library/Homebrew/compat/macos.rb | 5 +++++ Library/Homebrew/os.rb | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/compat/macos.rb b/Library/Homebrew/compat/macos.rb index 3acd2f9ef7..1f2c651c5c 100644 --- a/Library/Homebrew/compat/macos.rb +++ b/Library/Homebrew/compat/macos.rb @@ -1,5 +1,10 @@ require "development_tools" +if OS.mac? + MACOS_FULL_VERSION = OS::Mac.full_version.to_s.freeze + MACOS_VERSION = OS::Mac.version.to_s.freeze +end + module OS module Mac module_function diff --git a/Library/Homebrew/os.rb b/Library/Homebrew/os.rb index 2867d8864b..d35a49dd7b 100644 --- a/Library/Homebrew/os.rb +++ b/Library/Homebrew/os.rb @@ -20,9 +20,6 @@ module OS ISSUES_URL = "https://docs.brew.sh/Troubleshooting.html".freeze end PATH_OPEN = "/usr/bin/open".freeze - # compatibility - ::MACOS_FULL_VERSION = OS::Mac.full_version.to_s.freeze - ::MACOS_VERSION = OS::Mac.version.to_s.freeze elsif OS.linux? ISSUES_URL = "https://github.com/Linuxbrew/brew/wiki/troubleshooting".freeze PATH_OPEN = "xdg-open".freeze