diff options
| author | Mike McQuaid | 2015-02-12 16:02:23 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-13 10:58:43 +0000 |
| commit | 0caa1912d94f78af826a6abdc06c92e4e46df5d2 (patch) | |
| tree | 0d084985ad6ea808fe042bb42b81e5a35b94e69f /Library/Homebrew | |
| parent | 7004d3de0dd2d39ec44ccfc6bc481053555ea4d3 (diff) | |
| download | brew-0caa1912d94f78af826a6abdc06c92e4e46df5d2.tar.bz2 | |
Move "path or URL" tap string to global constant.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/tap_constants.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index d9004c72a..6e76a34d8 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 4392f5f92..ba387c85b 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" |
