From 176e55386c9902a2fae6e841b5766eb181f58a42 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Wed, 5 Aug 2015 09:51:37 -0700 Subject: [PATCH] ARGV: don't downcase bottle filenames Fixes Homebrew/homebrew#42470. --- Library/Homebrew/extend/ARGV.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb index a8eb9a5d22..663ecf89b4 100644 --- a/Library/Homebrew/extend/ARGV.rb +++ b/Library/Homebrew/extend/ARGV.rb @@ -213,9 +213,13 @@ module HomebrewArgvExtension end def downcased_unique_named - # Only lowercase names, not paths or URLs + # Only lowercase names, not paths, bottle filenames or URLs @downcased_unique_named ||= named.map do |arg| - arg.include?("/") ? arg : arg.downcase + if arg.include?("/") || arg.end_with?(".tar.gz") + arg + else + arg.downcase + end end.uniq end end