From 1fb16775328d6022643856de146d54d4654e880e Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Sat, 12 Jul 2014 09:00:40 -0400 Subject: Linuxbrew: Move ISSUES_URL to os from global Closes Homebrew/linuxbrew#103 Closes Homebrew/homebrew#30830. Signed-off-by: Jack Nagel --- Library/Homebrew/exceptions.rb | 2 +- Library/Homebrew/global.rb | 1 - Library/Homebrew/os.rb | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index a3ef018bf..d0d83bc89 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -177,7 +177,7 @@ class BuildError < Homebrew::InstallationError def dump if not ARGV.verbose? puts - puts "#{Tty.red}READ THIS#{Tty.reset}: #{Tty.em}#{ISSUES_URL}#{Tty.reset}" + puts "#{Tty.red}READ THIS#{Tty.reset}: #{Tty.em}#{OS::ISSUES_URL}#{Tty.reset}" if formula.tap? tap_issues_url = "https://github.com/#{formula.tap}/issues" puts "If reporting this issue please do so at (not Homebrew/homebrew):" diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index d25f24964..2659fb642 100644 --- a/Library/Homebrew/global.rb +++ b/Library/Homebrew/global.rb @@ -98,7 +98,6 @@ module Homebrew alias_method :failed?, :failed end -ISSUES_URL = "https://github.com/Homebrew/homebrew/wiki/troubleshooting" HOMEBREW_PULL_OR_COMMIT_URL_REGEX = 'https:\/\/github.com\/(\w+)\/homebrew(-\w+)?\/(pull\/(\d+)|commit\/\w{4,40})' require 'compat' unless ARGV.include? "--no-compat" or ENV['HOMEBREW_NO_COMPAT'] diff --git a/Library/Homebrew/os.rb b/Library/Homebrew/os.rb index 918758458..9d9886050 100644 --- a/Library/Homebrew/os.rb +++ b/Library/Homebrew/os.rb @@ -7,10 +7,11 @@ module OS /linux/i === RUBY_PLATFORM end - # Utilities if OS.mac? + ISSUES_URL = "https://github.com/Homebrew/homebrew/wiki/troubleshooting" PATH_OPEN = "/usr/bin/open" elsif OS.linux? + ISSUES_URL = "https://github.com/Homebrew/linuxbrew/wiki/troubleshooting" PATH_OPEN = "xdg-open" else raise "Unknown operating system" -- cgit v1.2.3