diff options
| author | Jack Nagel | 2012-01-12 20:08:35 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-01-12 20:31:47 -0600 |
| commit | 749a3538fe74a7d4e85d63687fb49a8e30248ddf (patch) | |
| tree | 80fc9d09d962f013f08c0de60a584eabc6751cfc /Library/Homebrew/extend | |
| parent | 7c9a7b42729ae949e5c57fedb8b7d58fda3dc086 (diff) | |
| download | homebrew-749a3538fe74a7d4e85d63687fb49a8e30248ddf.tar.bz2 | |
pathname: recognize ".cpio.*" double extensions
Just a cosmetic nicety.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/extend')
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 018547ff8..a83ef31af 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -62,9 +62,9 @@ class Pathname return dst end - # extended to support the double extensions .tar.gz, .tar.bz2, and .tar.xz + # extended to support common double extensions def extname - /(\.tar\.(gz|bz2|xz))$/.match to_s + /(\.(tar|cpio)\.(gz|bz2|xz))$/.match to_s return $1 if $1 return File.extname(to_s) end |
