summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Paymushkin <maxim.paymushkin@gmail.com>2019-10-19 16:58:36 +0300
committerNirbheek Chauhan <nirbheek@centricular.com>2020-10-09 02:04:25 +0530
commitcabea4316aa74b06a89d880147ab3fd9a845aec4 (patch)
tree949e09d406db83254c8aca7079a24b592bbeb442
parentde82847e1c348c2416cd3f5d15649d20c8e8293e (diff)
add support Ubuntu 18.10
Signed-off-by: Maxim Paymushkin <maxim.paymushkin@gmail.com> Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/634>
-rw-r--r--cerbero/enums.py1
-rw-r--r--cerbero/utils/__init__.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/cerbero/enums.py b/cerbero/enums.py
index 5ff66e85..b2f31261 100644
--- a/cerbero/enums.py
+++ b/cerbero/enums.py
@@ -90,6 +90,7 @@ class DistroVersion:
UBUNTU_XENIAL = 'ubuntu_16_04_xenial'
UBUNTU_ARTFUL = 'ubuntu_17_10_artful'
UBUNTU_BIONIC = 'ubuntu_18_04_bionic'
+ UBUNTU_COSMIC = 'ubuntu_18_10_cosmic'
UBUNTU_DISCO = 'ubuntu_19_04_disco'
FEDORA_16 = 'fedora_16'
FEDORA_17 = 'fedora_17'
diff --git a/cerbero/utils/__init__.py b/cerbero/utils/__init__.py
index 9c914ff3..211182af 100644
--- a/cerbero/utils/__init__.py
+++ b/cerbero/utils/__init__.py
@@ -218,6 +218,8 @@ Terminating.''', file=sys.stderr)
distro_version = DistroVersion.UBUNTU_ARTFUL
elif d[2] in ['bionic', 'tara', 'tessa']:
distro_version = DistroVersion.UBUNTU_BIONIC
+ elif d[2] in ['cosmic']:
+ distro_version = DistroVersion.UBUNTU_COSMIC
elif d[2] in ['disco']:
distro_version = DistroVersion.UBUNTU_DISCO
elif d[1].startswith('6.'):