summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Swain <robert.swain@ericsson.com>2015-09-14 20:46:19 +0200
committerEdward Hervey <bilboed@bilboed.com>2015-09-28 14:22:38 +0200
commit03dd484e1f85ceb534264ef77249a9a5bd091a97 (patch)
tree33233e9540b1bee0a78563ae0d2d742066001b38
parentf64fab805fa3f88902dc040e492e55f75c4cc1c7 (diff)
Add support for OS X 10.11 El Capitan
-rw-r--r--cerbero/enums.py1
-rw-r--r--cerbero/utils/__init__.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/cerbero/enums.py b/cerbero/enums.py
index bc07dc3f..d7e23a3a 100644
--- a/cerbero/enums.py
+++ b/cerbero/enums.py
@@ -92,6 +92,7 @@ class DistroVersion:
OS_X_MAVERICKS = 'osx_mavericks'
OS_X_MOUNTAIN_LION = 'osx_mountain_lion'
OS_X_YOSEMITE = 'osx_yosemite'
+ OS_X_EL_CAPITAN = 'osx_el_capitan'
IOS_6_0 = 'ios_6_0'
IOS_6_1 = 'ios_6_1'
IOS_7_0 = 'ios_7_0'
diff --git a/cerbero/utils/__init__.py b/cerbero/utils/__init__.py
index bb8f4b87..29f70a12 100644
--- a/cerbero/utils/__init__.py
+++ b/cerbero/utils/__init__.py
@@ -222,7 +222,9 @@ def system_info():
elif platform == Platform.DARWIN:
distro = Distro.OS_X
ver = pplatform.mac_ver()[0]
- if ver.startswith('10.10'):
+ if ver.startswith('10.11'):
+ distro_version = DistroVersion.OS_X_EL_CAPITAN
+ elif ver.startswith('10.10'):
distro_version = DistroVersion.OS_X_YOSEMITE
elif ver.startswith('10.9'):
distro_version = DistroVersion.OS_X_MAVERICKS