diff options
| author | Mike McQuaid | 2013-08-03 20:02:10 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2013-08-03 22:27:42 -0700 |
| commit | cfdd23b3efcfc994908dfb6792c8d062a19f12f1 (patch) | |
| tree | 56cb67c1eb66d20e4774868c1082696bd2397b5b /Library/Homebrew/bottles.rb | |
| parent | 705a24871993f9eeac108e38f0e587836e4a087a (diff) | |
| download | brew-cfdd23b3efcfc994908dfb6792c8d062a19f12f1.tar.bz2 | |
bottles: use dedicated version class.
Diffstat (limited to 'Library/Homebrew/bottles.rb')
| -rw-r--r-- | Library/Homebrew/bottles.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb index 60a4dcca0..ab484c134 100644 --- a/Library/Homebrew/bottles.rb +++ b/Library/Homebrew/bottles.rb @@ -1,6 +1,7 @@ require 'tab' require 'macos' require 'extend/ARGV' +require 'bottle_version' # TODO: use options={} for some arguments. @@ -91,8 +92,8 @@ def bottle_tag end def bottle_filename_formula_name filename - version = Version.parse(filename).to_s path = Pathname.new filename + version = BottleVersion.parse(path).to_s basename = path.basename.to_s basename.rpartition("-#{version}").first end |
