aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMisty De Meo2011-12-12 09:10:52 -0600
committerMisty De Meo2011-12-12 09:10:52 -0600
commit84493434f1ab1fd6cc97d940d8d4985372796d40 (patch)
tree82fe2e8153c5eea9eca9620a6a978a4e6e0d783f /Library/Homebrew/extend
parentdb02ad1acc3c302cb80c1bb7e39ec07cee8a1cf5 (diff)
parent14cd6667b48eaaa8b4d85bded5b7025c2becb38a (diff)
downloadbrew-84493434f1ab1fd6cc97d940d8d4985372796d40.tar.bz2
Merge branch 'master' of git://github.com/mxcl/homebrew
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 65d34d450..018547ff8 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 and .tar.bz2
+ # extended to support the double extensions .tar.gz, .tar.bz2, and .tar.xz
def extname
- /(\.tar\.(gz|bz2))$/.match to_s
+ /(\.tar\.(gz|bz2|xz))$/.match to_s
return $1 if $1
return File.extname(to_s)
end