diff options
| author | Jack Nagel | 2012-07-08 12:22:25 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-07-08 12:27:19 -0500 |
| commit | a8c05c9772636b334aa2421ac830a0212d919c74 (patch) | |
| tree | d30456064dc465acc3c55e058db816a8599d8667 /Library | |
| parent | 147861542911a78419f6fe2a0c16eb94c7a95b49 (diff) | |
| download | brew-a8c05c9772636b334aa2421ac830a0212d919c74.tar.bz2 | |
Restore some things to failed install config dump
Closes Homebrew/homebrew#11091.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/--config.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/--config.rb b/Library/Homebrew/cmd/--config.rb index f78c31f79..4ead67caf 100644 --- a/Library/Homebrew/cmd/--config.rb +++ b/Library/Homebrew/cmd/--config.rb @@ -45,11 +45,11 @@ module Homebrew extend self @describe_clt ||= if MacOS.clt_installed? then MacOS.clt_version else 'N/A' end end - def sha - sha = HOMEBREW_REPOSITORY.cd do + def head + head = HOMEBREW_REPOSITORY.cd do `git rev-parse --verify -q HEAD 2>/dev/null`.chomp end - if sha.empty? then "(none)" else sha end + if head.empty? then "(none)" else head end end def describe_path path @@ -85,11 +85,14 @@ module Homebrew extend self # we try to keep output minimal def dump_build_config + puts "HOMEBREW_VERSION: #{HOMEBREW_VERSION}" + puts "HEAD: #{head}" puts "HOMEBREW_PREFIX: #{HOMEBREW_PREFIX}" if HOMEBREW_PREFIX.to_s != "/usr/local" puts "HOMEBREW_CELLAR: #{HOMEBREW_CELLAR}" if HOMEBREW_CELLAR.to_s != "#{HOMEBREW_PREFIX}/Cellar" puts hardware puts "OS X: #{MACOS_FULL_VERSION}-#{kernel}" puts "Xcode: #{describe_xcode}" + puts "CLT: #{describe_clt}" if MacOS.xcode_version.to_f >= 4.3 puts "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby:\n #{RUBY_VERSION}-#{RUBY_PATCHLEVEL}" if RUBY_VERSION.to_f != 1.8 unless MacOS.compilers_standard? @@ -108,7 +111,7 @@ module Homebrew extend self def config_s config_s = <<-EOS.undent HOMEBREW_VERSION: #{HOMEBREW_VERSION} - HEAD: #{sha} + HEAD: #{head} HOMEBREW_PREFIX: #{HOMEBREW_PREFIX} HOMEBREW_CELLAR: #{HOMEBREW_CELLAR} #{hardware} |
