aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-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