diff options
| author | Adam Vandenberg | 2013-11-29 10:10:28 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2013-11-29 15:18:49 -0800 |
| commit | 107ab9c04a3f65799fad377c13b0b75f4082a31b (patch) | |
| tree | c9ba5bb2259a715a2d96251c05aea90cc2de14b5 /Library/Homebrew/extend/pathname.rb | |
| parent | 4091c1d976707ff6aa0db59528a4be60ce904988 (diff) | |
| download | homebrew-107ab9c04a3f65799fad377c13b0b75f4082a31b.tar.bz2 | |
support .lz archives
Closes #24775.
Diffstat (limited to 'Library/Homebrew/extend/pathname.rb')
| -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 |
