From 0caa1912d94f78af826a6abdc06c92e4e46df5d2 Mon Sep 17 00:00:00 2001
From: Mike McQuaid <mike@mikemcquaid.com>
Date: Thu, 12 Feb 2015 16:02:23 +0000
Subject: [PATCH] Move "path or URL" tap string to global constant.

---
 Library/Homebrew/formula.rb       | 2 +-
 Library/Homebrew/tap_constants.rb | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index d9004c72ac..6e76a34d82 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -540,7 +540,7 @@ class Formula
     elsif core_formula?
       "Homebrew/homebrew"
     else
-      "path or URL"
+      HOMEBREW_PATH_URL_TAP
     end
   end
 
diff --git a/Library/Homebrew/tap_constants.rb b/Library/Homebrew/tap_constants.rb
index 4392f5f926..ba387c85b9 100644
--- a/Library/Homebrew/tap_constants.rb
+++ b/Library/Homebrew/tap_constants.rb
@@ -8,3 +8,5 @@ HOMEBREW_TAP_DIR_REGEX = %r{#{Regexp.escape(HOMEBREW_LIBRARY.to_s)}/Taps/([\w-]+
 HOMEBREW_TAP_PATH_REGEX = Regexp.new(HOMEBREW_TAP_DIR_REGEX.source + %r{/(.*)}.source)
 # match the default brew-cask tap e.g. Caskroom/cask
 HOMEBREW_CASK_TAP_FORMULA_REGEX = %r{^(Caskroom)/(cask)/([\w+-.]+)$}
+# the tap name used for formulae installed from paths or URLs
+HOMEBREW_PATH_URL_TAP = "path or URL"
-- 
GitLab