diff options
| author | Max Howell | 2011-08-31 11:07:27 +0100 |
|---|---|---|
| committer | Max Howell | 2011-08-31 15:35:59 +0100 |
| commit | fcf20eb3d6e5b1126a4accfe3f4948d003766d94 (patch) | |
| tree | f3f481fbeb65923f15b9f41e799f0425dbe93406 /Library | |
| parent | c0d4ea1f53e956d9b3442fd9a8417d05b1188565 (diff) | |
| download | homebrew-fcf20eb3d6e5b1126a4accfe3f4948d003766d94.tar.bz2 | |
Save config.log to ~/Library/Logs/Homebrew
Also tidied error output. Still could be tidied quite a lot but I am still considering how best to go about it.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 10 | ||||
| -rw-r--r-- | Library/Homebrew/global.rb | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index fd9bcbb72..42c0e575a 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -251,9 +251,17 @@ class Formula # so load any deps before this point! And exit asap afterwards yield self rescue Interrupt, RuntimeError, SystemCallError => e - raise unless ARGV.debug? + unless ARGV.debug? + if File.exist? 'config.log' + logs = File.expand_path '~/Library/Logs/Homebrew/' + mkdir_p logs + cp 'config.log', logs + end + raise + end onoe e.inspect puts e.backtrace + ohai "Rescuing build..." if (e.was_running_configure? rescue false) and File.exist? 'config.log' puts "It looks like an autotools configure failed." diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index e7a7a181f..ed9e3b08a 100644 --- a/Library/Homebrew/global.rb +++ b/Library/Homebrew/global.rb @@ -57,7 +57,7 @@ module Homebrew extend self end FORMULA_META_FILES = %w[README README.md ChangeLog COPYING LICENSE LICENCE COPYRIGHT AUTHORS] -PLEASE_REPORT_BUG = "#{Tty.white}Please report this bug: #{Tty.em}https://github.com/mxcl/homebrew/wiki/Checklist-before-filing-a-new-issue#{Tty.reset}" +ISSUES_URL = "https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue" unless ARGV.include? "--no-compat" or ENV['HOMEBREW_NO_COMPAT'] $:.unshift(File.expand_path("#{__FILE__}/../compat")) |
