aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-07-16 18:54:19 -0500
committerJack Nagel2014-07-16 18:54:19 -0500
commit8044c4524bfde1f935c28486a7e3c7effd26fa6a (patch)
tree3437acec4e2e62cfcfcee8d763219aa7f617fd50 /Library
parentdc3bcf22a380caa8a776b78e7eaf1a3341839114 (diff)
downloadbrew-8044c4524bfde1f935c28486a7e3c7effd26fa6a.tar.bz2
Rename variable
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/bottles.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb
index b2539c953..7ff9d2e6d 100644
--- a/Library/Homebrew/bottles.rb
+++ b/Library/Homebrew/bottles.rb
@@ -65,29 +65,29 @@ end
class BottleCollector
def initialize
- @bottles = {}
+ @checksums = {}
end
def fetch_checksum_for(tag)
- return [@bottles[tag], tag] if key?(tag)
+ return [@checksums[tag], tag] if key?(tag)
find_altivec_tag(tag) || find_or_later_tag(tag)
end
def keys
- @bottles.keys
+ @checksums.keys
end
def [](key)
- @bottles[key]
+ @checksums[key]
end
def []=(key, value)
- @bottles[key] = value
+ @checksums[key] = value
end
def key?(key)
- @bottles.key?(key)
+ @checksums.key?(key)
end
private
@@ -99,7 +99,7 @@ class BottleCollector
def find_altivec_tag(tag)
if tag.to_s =~ /(\w+)_(g4|g4e|g5)$/
altivec_tag = "#{$1}_altivec".to_sym
- return [@bottles[altivec_tag], altivec_tag] if key?(altivec_tag)
+ return [@checksums[altivec_tag], altivec_tag] if key?(altivec_tag)
end
end
@@ -107,7 +107,7 @@ class BottleCollector
# so the same bottle can target multiple OSs.
# Not used in core, used in taps.
def find_or_later_tag(tag)
- results = @bottles.find_all {|k,v| k.to_s =~ /_or_later$/}
+ results = @checksums.find_all {|k,v| k.to_s =~ /_or_later$/}
results.each do |key, hsh|
later_tag = key.to_s[/(\w+)_or_later$/, 1].to_sym
bottle_version = MacOS::Version.from_symbol(later_tag)