aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/pathname.rb
diff options
context:
space:
mode:
authorJack Nagel2014-04-06 12:34:42 -0500
committerJack Nagel2014-04-06 12:35:54 -0500
commit260a351663a37693387037f120f9a3ca3fb468be (patch)
tree481c37742d3180ee05c4ae64248e5dd893752883 /Library/Homebrew/extend/pathname.rb
parentaf4aff8c13ffd952ce6217616fae02d9f27c0c89 (diff)
downloadbrew-260a351663a37693387037f120f9a3ca3fb468be.tar.bz2
Recognize and extract xar files
Diffstat (limited to 'Library/Homebrew/extend/pathname.rb')
-rw-r--r--Library/Homebrew/extend/pathname.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 40f182614..13b882b0f 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -206,9 +206,6 @@ class Pathname
when ".jar", ".war"
# Don't treat jars or wars as compressed
return
- when ".pkg"
- # OS X installer package
- return :pkg
when ".gz"
# If the filename ends with .gz not preceded by .tar
# then we want to gunzip but not tar
@@ -230,6 +227,7 @@ class Pathname
when /^LZIP/n then :lzip
when /^Rar!/n then :rar
when /^7z\xBC\xAF\x27\x1C/n then :p7zip
+ when /^xar!/n then :xar
else
# This code so that bad-tarballs and zips produce good error messages
# when they don't unarchive properly.