diff options
| author | Misty De Meo | 2015-08-05 09:51:37 -0700 |
|---|---|---|
| committer | Misty De Meo | 2015-08-05 09:51:37 -0700 |
| commit | 176e55386c9902a2fae6e841b5766eb181f58a42 (patch) | |
| tree | f0cab6b7f6261586dbc6e572d524122469c2713b /Library | |
| parent | 4f549da1153a78a559a12f1bd6f074c09ce241e6 (diff) | |
| download | brew-176e55386c9902a2fae6e841b5766eb181f58a42.tar.bz2 | |
ARGV: don't downcase bottle filenames
Fixes Homebrew/homebrew#42470.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/ARGV.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb index a8eb9a5d2..663ecf89b 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 |
