diff options
| author | Adam Vandenberg | 2013-11-29 10:10:28 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2013-11-29 15:18:49 -0800 |
| commit | 268feffae410c389a4d1483198fded8e93554857 (patch) | |
| tree | c3dd096983f58e532c06b4a8cf453b460b230fea /Library/Homebrew/extend | |
| parent | 06bf1c0f0201d24f480c5fa3488f9bc57abf7858 (diff) | |
| download | brew-268feffae410c389a4d1483198fded8e93554857.tar.bz2 | |
support .lz archives
Closes Homebrew/homebrew#24775.
Diffstat (limited to 'Library/Homebrew/extend')
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index ecccc00c6..30cb44d98 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -141,7 +141,7 @@ class Pathname def extname(path=to_s) BOTTLE_EXTNAME_RX.match(path) return $1 if $1 - /(\.(tar|cpio|pax)\.(gz|bz2|xz|Z))$/.match(path) + /(\.(tar|cpio|pax)\.(gz|bz2|lz|xz|Z))$/.match(path) return $1 if $1 return File.extname(path) end @@ -207,6 +207,7 @@ class Pathname when /^\037\235/n then :compress when /^.{257}ustar/n then :tar when /^\xFD7zXZ\x00/n then :xz + when /^LZIP/n then :lzip when /^Rar!/n then :rar when /^7z\xBC\xAF\x27\x1C/n then :p7zip else |
