Fix use of ISSUES_URL.

This commit is contained in:
Mike McQuaid 2012-09-28 19:20:34 +01:00
parent 33b2a29e14
commit 53b387987b
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ class BuildError < Homebrew::InstallationError
puts puts
onoe "#{formula.name} did not build" onoe "#{formula.name} did not build"
puts "Logs: #{logs}" unless Dir["#{logs}/*"].empty? puts "Logs: #{logs}" unless Dir["#{logs}/*"].empty?
puts "Help: #{Tty.em}https://github.com/mxcl/homebrew/wiki/troubleshooting#{Tty.reset}" puts "Help: #{Tty.em}#{ISSUES_URL}#{Tty.reset}"
issues = GitHub.issues_for_formula(formula.name) issues = GitHub.issues_for_formula(formula.name)
puts *issues.map{ |s| " #{Tty.em}#{s}#{Tty.reset}" } unless issues.empty? puts *issues.map{ |s| " #{Tty.em}#{s}#{Tty.reset}" } unless issues.empty?
end end

View File

@ -84,7 +84,7 @@ module Homebrew extend self
end end
FORMULA_META_FILES = %w[README README.md ChangeLog CHANGES COPYING LICENSE LICENCE COPYRIGHT AUTHORS] FORMULA_META_FILES = %w[README README.md ChangeLog CHANGES COPYING LICENSE LICENCE COPYRIGHT AUTHORS]
ISSUES_URL = "https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist" ISSUES_URL = "https://github.com/mxcl/homebrew/wiki/troubleshooting"
unless ARGV.include? "--no-compat" or ENV['HOMEBREW_NO_COMPAT'] unless ARGV.include? "--no-compat" or ENV['HOMEBREW_NO_COMPAT']
$:.unshift(File.expand_path("#{__FILE__}/../compat")) $:.unshift(File.expand_path("#{__FILE__}/../compat"))