Use 'path or URL' as tap for non-tap, non-core formulae

This commit is contained in:
Adam Vandenberg 2013-06-23 16:21:48 -07:00
parent b9b1dfb9a6
commit 1a72c85a05
2 changed files with 4 additions and 3 deletions

View File

@ -176,7 +176,7 @@ class BuildError < Homebrew::InstallationError
unless formula.core_formula?
ohai "Formula"
puts "Tap: #{formula.tap}" unless formula.tap == "mxcl/master" # tap lies about non-tap externals
puts "Tap: #{formula.tap}"
puts "Path: #{formula.path.realpath}"
end
ohai "Configuration"

View File

@ -489,9 +489,10 @@ class Formula
def tap
if path.realpath.to_s =~ %r{#{HOMEBREW_REPOSITORY}/Library/Taps/(\w+)-(\w+)}
"#$1/#$2"
else
# remotely installed formula are not mxcl/master but this will do for now
elsif core_formula?
"mxcl/master"
else
"path or URL"
end
end