Bottle: handle legacy bottle OS tags.

Otherwise :mountainlion, :snowleopard in the history for CMake breaks 
bottle_filenames from versions for new CMake bottles.
This commit is contained in:
Mike McQuaid 2013-10-28 10:50:02 +00:00
parent fdc08424af
commit 42c9ecd665

View File

@ -120,7 +120,7 @@ class Bottle < SoftwareSpec
checksum_os_versions = send checksum_type
next unless checksum_os_versions
os_versions = checksum_os_versions.keys
os_versions.map! {|osx| MacOS::Version.from_symbol osx }
os_versions.map! {|osx| MacOS::Version.from_symbol osx rescue nil }
os_versions.sort.reverse.each do |os_version|
osx = os_version.to_sym
checksum = checksum_os_versions[osx]