aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorJack Nagel2012-01-12 20:08:35 -0600
committerJack Nagel2012-01-12 20:31:47 -0600
commitae4ea06e22b5542c4f51ab4d2281bf8b7c14037c (patch)
treeb1ca356ca4f3b32ae875b28f5b6a881ad5a83cec /Library/Homebrew/extend
parent6d1ef8d9ca02d4c5ba10bb4e65becb1a70afd309 (diff)
downloadbrew-ae4ea06e22b5542c4f51ab4d2281bf8b7c14037c.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.rb4
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