From 1b4b8a722ecb37bfb4e99b16881075ee2f5f67c0 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 6 Mar 2012 20:11:46 +0000 Subject: Pathname.stem knows about bottles --- Library/Homebrew/extend/pathname.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'Library') 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) -- cgit v1.2.3