aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-05-27 22:49:18 +0800
committerXu Cheng2015-06-02 16:45:43 +0800
commit99ba9faf09c7bbc1110de68b1f47bdff1b95191c (patch)
treebf92da25247c937ad06f79fb3e7e633101a9b8a2 /Library
parent557ddcac362ac2f32c87366516879c572fa09d10 (diff)
downloadbrew-99ba9faf09c7bbc1110de68b1f47bdff1b95191c.tar.bz2
BottleLoader: use bottle_resolve_formula_names
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formulary.rb13
1 files changed, 2 insertions, 11 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index 65ab0b68f..5e55543d0 100644
--- a/Library/Homebrew/formulary.rb
+++ b/Library/Homebrew/formulary.rb
@@ -69,17 +69,8 @@ class Formulary
class BottleLoader < FormulaLoader
def initialize bottle_name
@bottle_filename = Pathname(bottle_name).realpath
- name_without_version = bottle_filename_formula_name @bottle_filename
- if name_without_version.empty?
- if ARGV.homebrew_developer?
- opoo "Add a new regex to bottle_version.rb to parse this filename."
- end
- name = bottle_name
- else
- name = name_without_version
- end
-
- super name, Formulary.path(name)
+ name, full_name = bottle_resolve_formula_names @bottle_filename
+ super name, Formulary.path(full_name)
end
def get_formula(spec)