diff options
| author | Shaun Jackman | 2014-07-12 09:00:40 -0400 | 
|---|---|---|
| committer | Jack Nagel | 2014-07-12 15:39:59 -0500 | 
| commit | 1fb16775328d6022643856de146d54d4654e880e (patch) | |
| tree | 3ef471213c2d361be75bcdcce299ce51ac21c935 /Library/Homebrew | |
| parent | 83a3b7d2a0d14df6872d18648bec4cf7302ba735 (diff) | |
| download | brew-1fb16775328d6022643856de146d54d4654e880e.tar.bz2 | |
Linuxbrew: Move ISSUES_URL to os from global
Closes Homebrew/linuxbrew#103
Closes Homebrew/homebrew#30830.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew')
| -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"  | 
