Commit e0d5ccbe authored by Nirbheek Chauhan's avatar Nirbheek Chauhan 🐜
Browse files

Add enums for macOS Big Sur

Part-of: <!626>
parent 332c86df
......@@ -138,6 +138,7 @@ class DistroVersion:
OS_X_HIGH_SIERRA = 'osx_high_sierra'
OS_X_MOJAVE = 'osx_mojave'
OS_X_CATALINA = 'osx_catalina'
OS_X_BIG_SUR = 'osx_big_sur'
IOS_8_0 = 'ios_08_0'
IOS_8_1 = 'ios_08_1'
IOS_8_2 = 'ios_08_2'
......
......@@ -349,7 +349,9 @@ Terminating.''', file=sys.stderr)
elif platform == Platform.DARWIN:
distro = Distro.OS_X
ver = pplatform.mac_ver()[0]
if ver.startswith('10.15'):
if ver.startswith('11.0'):
distro_version = DistroVersion.OS_X_BIG_SUR
elif ver.startswith('10.15'):
distro_version = DistroVersion.OS_X_CATALINA
elif ver.startswith('10.14'):
distro_version = DistroVersion.OS_X_MOJAVE
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment