diff options
| author | Adam Vandenberg | 2013-06-23 16:15:11 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-24 07:33:29 -0700 |
| commit | b9b1dfb9a6670e33802d2f510db95350cd8bb380 (patch) | |
| tree | 8f84f29020e251d332aab6e29327c23d44ff76d2 /Library/Homebrew/formula.rb | |
| parent | 1aabba7b9e5ec9d3c3e1e5021236d4d006c97915 (diff) | |
| download | brew-b9b1dfb9a6670e33802d2f510db95350cd8bb380.tar.bz2 | |
Show tap/path for non-core formulae on build failure
Closes Homebrew/homebrew#16373.
Closes Homebrew/homebrew#20725.
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 3ad91ac8b..283395124 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -495,6 +495,11 @@ class Formula end end + # True if this formula is provided by Homebrew itself + def core_formula? + path.realpath.to_s == Formula.path(name).to_s + end + def self.path name Pathname.new("#{HOMEBREW_REPOSITORY}/Library/Formula/#{name.downcase}.rb") end |
