diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2020-06-04 18:54:05 +0100 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-10-09 02:04:26 +0530 |
commit | eececd6185c2c5470f39659190a1553bfb29e60a (patch) | |
tree | 025cf0dc6e098fe4563b59ebd9d7beee8abc5887 | |
parent | 8a6fa37ba986f6df19557a6f0f442ccc29fe4bbf (diff) |
cerbero: add debian unstable/sid to the distro list
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/634>
-rw-r--r-- | cerbero/enums.py | 1 | ||||
-rw-r--r-- | cerbero/utils/__init__.py | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/cerbero/enums.py b/cerbero/enums.py index e81c821e..2f877a09 100644 --- a/cerbero/enums.py +++ b/cerbero/enums.py @@ -75,6 +75,7 @@ class DistroVersion: DEBIAN_STRETCH = 'debian_09_stretch' DEBIAN_BUSTER = 'debian_10_buster' DEBIAN_BULLSEYE = 'debian_11_bullseye' + DEBIAN_SID = 'debian_99_sid' UBUNTU_LUCID = 'ubuntu_10_04_lucid' UBUNTU_MAVERICK = 'ubuntu_10_10_maverick' UBUNTU_NATTY = 'ubuntu_11_04_natty' diff --git a/cerbero/utils/__init__.py b/cerbero/utils/__init__.py index 934fe082..ed5dd11e 100644 --- a/cerbero/utils/__init__.py +++ b/cerbero/utils/__init__.py @@ -186,7 +186,7 @@ Terminating.''', file=sys.stderr) version = v.strip('"') d = (name, version, ''); - if d[0] in ['Ubuntu', 'debian', 'LinuxMint']: + if d[0] in ['Ubuntu', 'debian', 'Debian GNU/Linux', 'LinuxMint']: distro = Distro.DEBIAN if d[2] in ['maverick', 'isadora']: distro_version = DistroVersion.UBUNTU_MAVERICK @@ -238,6 +238,8 @@ Terminating.''', file=sys.stderr) distro_version = DistroVersion.DEBIAN_BUSTER elif d[1].startswith('11.') or d[1].startswith('bullseye'): distro_version = DistroVersion.DEBIAN_BULLSEYE + elif d[1] == 'unstable' and d[2] == 'sid': + distro_version = DistroVersion.DEBIAN_SID else: raise FatalError("Distribution '%s' not supported" % str(d)) elif d[0] in ['RedHat', 'Fedora', 'CentOS', 'Red Hat Enterprise Linux Server', 'CentOS Linux']: |