summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2019-09-20 10:42:59 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2020-06-28 03:32:31 +0530
commita8e41df2bb30a7ca8fe09ef96a312df8fad5ff2f (patch)
tree0c6e93e5f61dd603cfcbc8fd1d9c6e060649d412
parentb6d2e150385b277e573417e4e33f3326869be417 (diff)
cerbero: Add enums for fedora 31
-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 aba12c1a..473117da 100644
--- a/cerbero/enums.py
+++ b/cerbero/enums.py
@@ -100,6 +100,7 @@ class DistroVersion:
FEDORA_28 = 'fedora_28'
FEDORA_29 = 'fedora_29'
FEDORA_30 = 'fedora_30'
+ FEDORA_31 = 'fedora_31'
REDHAT_6 = 'redhat_6'
REDHAT_7 = 'redhat_7'
# Amazon Linux seems to be RedHat/CentOS-based
diff --git a/cerbero/utils/__init__.py b/cerbero/utils/__init__.py
index 9267cfc6..2680c351 100644
--- a/cerbero/utils/__init__.py
+++ b/cerbero/utils/__init__.py
@@ -249,6 +249,8 @@ def system_info():
distro_version = DistroVersion.FEDORA_29
elif d[1] == '30':
distro_version = DistroVersion.FEDORA_30
+ elif d[1] == '31':
+ distro_version = DistroVersion.FEDORA_31
elif d[1].startswith('6.'):
distro_version = DistroVersion.REDHAT_6
elif d[1].startswith('7.'):