aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2015-08-05 09:51:37 -0700
committerMisty De Meo2015-08-05 09:51:37 -0700
commit176e55386c9902a2fae6e841b5766eb181f58a42 (patch)
treef0cab6b7f6261586dbc6e572d524122469c2713b /Library
parent4f549da1153a78a559a12f1bd6f074c09ce241e6 (diff)
downloadbrew-176e55386c9902a2fae6e841b5766eb181f58a42.tar.bz2
ARGV: don't downcase bottle filenames
Fixes Homebrew/homebrew#42470.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ARGV.rb8
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