aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorXu Cheng2015-06-04 20:56:47 +0800
committerXu Cheng2015-06-07 23:51:15 +0800
commit31ca2831f3a78fa3f4e2a0cb4e7133c4b83460f9 (patch)
tree79a0c27b7a8ca2c70fd0d1362738ea1cf86bcb2d /Library/Homebrew/extend
parent3c418cfb4eaa5eeafb3613172954c01aca831af1 (diff)
downloadbrew-31ca2831f3a78fa3f4e2a0cb4e7133c4b83460f9.tar.bz2
Revert "Pathname#version: support bottle version"
This reverts commit 02fba8ce25f1e34c981cb30197e2b4711f88b266.
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/pathname.rb11
1 files changed, 1 insertions, 10 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 1cbe50f86..ee8d8c9f4 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -197,16 +197,7 @@ class Pathname
def version
require 'version'
- if BOTTLE_EXTNAME_RX === to_s
- begin
- receipt = Utils.popen_read("tar", "-tzf", to_s, "*/*/INSTALL_RECEIPT.json").chomp
- Version.new(receipt.split("/", 3)[1])
- rescue
- Version.parse(self)
- end
- else
- Version.parse(self)
- end
+ Version.parse(self)
end
def compression_type