Skip to content
Snippets Groups Projects
Commit 1a72c85a authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

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

parent b9b1dfb9
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment