diff options
| author | Shaun Jackman | 2014-07-12 09:00:40 -0400 |
|---|---|---|
| committer | Jack Nagel | 2014-07-12 15:39:59 -0500 |
| commit | 7c887731f04e12b108422b13ccbc5c10e2e1feb7 (patch) | |
| tree | 22f2ca22d9bda2c9c53f2d3c58099b440c0b7ce9 /Library | |
| parent | 0f7c2dfc92e6ec6bb512845a39cd0f3799bcc9fc (diff) | |
| download | homebrew-7c887731f04e12b108422b13ccbc5c10e2e1feb7.tar.bz2 | |
Linuxbrew: Move ISSUES_URL to os from global
Closes Homebrew/linuxbrew#103
Closes #30830.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/global.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/os.rb | 3 |
3 files changed, 3 insertions, 3 deletions
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" |
