aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/bottles.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb
index 159654c48..96562f6c3 100644
--- a/Library/Homebrew/bottles.rb
+++ b/Library/Homebrew/bottles.rb
@@ -42,8 +42,8 @@ def bottle_file_outdated? f, file
return nil unless f and f.bottle and f.bottle.url \
and filename.match(bottle_regex)
- bottle_ext = filename.match(bottle_native_regex).captures.first rescue nil
- bottle_url_ext = f.bottle.url.match(bottle_native_regex).captures.first rescue nil
+ bottle_ext = filename[bottle_native_regex, 1]
+ bottle_url_ext = f.bottle.url[bottle_native_regex, 1]
bottle_ext && bottle_url_ext && bottle_ext != bottle_url_ext
end