aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/bottles.rb
diff options
context:
space:
mode:
authorXu Cheng2015-07-22 22:26:52 +0800
committerXu Cheng2015-07-24 15:59:28 +0800
commit602ea66a0f6e8933fea00ad558390c50f52848ca (patch)
tree26dabf5083d952a8dca95ca58713b03ac54e65cc /Library/Homebrew/bottles.rb
parent2751449abb69a5dee3f919c33db761c1ec2d2bfa (diff)
downloadbrew-602ea66a0f6e8933fea00ad558390c50f52848ca.tar.bz2
bottle_resolve_version: return PkgVersion
Diffstat (limited to 'Library/Homebrew/bottles.rb')
-rw-r--r--Library/Homebrew/bottles.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb
index 3fe921d7b..2c20b2585 100644
--- a/Library/Homebrew/bottles.rb
+++ b/Library/Homebrew/bottles.rb
@@ -58,7 +58,7 @@ def bottle_resolve_formula_names bottle_file
end
def bottle_resolve_version bottle_file
- Version.new bottle_receipt_path(bottle_file).split("/")[1]
+ PkgVersion.parse bottle_receipt_path(bottle_file).split("/")[1]
end
class Bintray