Linuxbrew: Move ISSUES_URL to os from global
Closes Homebrew/linuxbrew#103 Closes Homebrew/homebrew#30830. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
83a3b7d2a0
commit
1fb1677532
@ -177,7 +177,7 @@ class BuildError < Homebrew::InstallationError
|
|||||||
def dump
|
def dump
|
||||||
if not ARGV.verbose?
|
if not ARGV.verbose?
|
||||||
puts
|
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?
|
if formula.tap?
|
||||||
tap_issues_url = "https://github.com/#{formula.tap}/issues"
|
tap_issues_url = "https://github.com/#{formula.tap}/issues"
|
||||||
puts "If reporting this issue please do so at (not Homebrew/homebrew):"
|
puts "If reporting this issue please do so at (not Homebrew/homebrew):"
|
||||||
|
|||||||
@ -98,7 +98,6 @@ module Homebrew
|
|||||||
alias_method :failed?, :failed
|
alias_method :failed?, :failed
|
||||||
end
|
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})'
|
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']
|
require 'compat' unless ARGV.include? "--no-compat" or ENV['HOMEBREW_NO_COMPAT']
|
||||||
|
|||||||
@ -7,10 +7,11 @@ module OS
|
|||||||
/linux/i === RUBY_PLATFORM
|
/linux/i === RUBY_PLATFORM
|
||||||
end
|
end
|
||||||
|
|
||||||
# Utilities
|
|
||||||
if OS.mac?
|
if OS.mac?
|
||||||
|
ISSUES_URL = "https://github.com/Homebrew/homebrew/wiki/troubleshooting"
|
||||||
PATH_OPEN = "/usr/bin/open"
|
PATH_OPEN = "/usr/bin/open"
|
||||||
elsif OS.linux?
|
elsif OS.linux?
|
||||||
|
ISSUES_URL = "https://github.com/Homebrew/linuxbrew/wiki/troubleshooting"
|
||||||
PATH_OPEN = "xdg-open"
|
PATH_OPEN = "xdg-open"
|
||||||
else
|
else
|
||||||
raise "Unknown operating system"
|
raise "Unknown operating system"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user