aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMax Howell2012-03-06 20:11:46 +0000
committerMax Howell2012-03-06 20:28:06 +0000
commit1b4b8a722ecb37bfb4e99b16881075ee2f5f67c0 (patch)
tree1b8c4c0bc54bcbe6a7e130e9f66652ac1cb24038 /Library/Homebrew
parentb63ec18564017534822d749e7e712cd0d45b8ef6 (diff)
downloadbrew-1b4b8a722ecb37bfb4e99b16881075ee2f5f67c0.tar.bz2
Pathname.stem knows about bottles
Diffstat (limited to 'Library/Homebrew')
-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)