diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index a3ef018bff..d0d83bc893 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 d25f249648..2659fb6423 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 9187584587..9d98860501 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"