From a8e41df2bb30a7ca8fe09ef96a312df8fad5ff2f Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 20 Sep 2019 10:42:59 +0530 Subject: cerbero: Add enums for fedora 31 --- cerbero/enums.py | 1 + cerbero/utils/__init__.py | 2 ++ 2 files changed, 3 insertions(+) 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.'): -- cgit v1.2.3