Library/Homebrew/bottles.rb
# Allows a bottle tag to specify a specific OS or later,
# so the same bottle can target multiple OSs.
# Not used in core, used in taps.
Allows a bottle tag to specify a specific OS or later,
so the same bottle can target multiple OSs.
Not used in core, used in taps.
Allows a bottle tag to specify a specific OS or later 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.each do |key, hsh|
      later_tag = key.to_s[/(\w+)_or_later$/, 1].to_sym
      bottle_version = MacOS::Version.from_symbol(later_tag)
      return [hsh, key] if bottle_version <= MacOS::Version.from_symbol(tag)
    end
    nil
  end
def find_or_later_tag ( tag ) results = @bottles . 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 ) return [ hsh , key ] if bottle_version <= MacOS :: Version . from_symbol ( tag ) end nil end
Allows a bottle tag to specify a specific OS or later,
so the same bottle can target multiple OSs.
Allows a bottle tag to specify a specific OS or later so the same bottle can target multiple OSs .
tag
<not_specific>