aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2013-06-23 16:21:48 -0700
committerAdam Vandenberg2013-06-24 07:33:37 -0700
commit1a72c85a05f9e2122be8bc6d0ddbb6d0381adefe (patch)
tree30d2fa563fbd16cafdb5a8e1a855fc9dd0f653c1 /Library/Homebrew/formula.rb
parentb9b1dfb9a6670e33802d2f510db95350cd8bb380 (diff)
downloadbrew-1a72c85a05f9e2122be8bc6d0ddbb6d0381adefe.tar.bz2
Use 'path or URL' as tap for non-tap, non-core formulae
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 283395124..cec9857f7 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -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