aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-03-06 20:11:46 +0000
committerMax Howell2012-03-06 20:28:06 +0000
commit1cdad6f20136783842cb8ed918a0beedf6eaa2dc (patch)
treebe1de97cfd9789d5e26ac4bc1c12757c764ff3bf /Library
parent03b2aae0a8aa89fa350db2aa8dcb3ac4b7e69bff (diff)
downloadhomebrew-1cdad6f20136783842cb8ed918a0beedf6eaa2dc.tar.bz2
Pathname.stem knows about bottles
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/pathname.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index ef14801c5..6d45d0b77 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -100,6 +100,7 @@ class Pathname
# extended to support common double extensions
def extname
+ return $1 if to_s =~ /(\.bottle\.tar\.gz)$/
/(\.(tar|cpio)\.(gz|bz2|xz|Z))$/.match to_s
return $1 if $1
return File.extname(to_s)