summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartłomiej Kurzeja <bartlomiej@kurzeja.it>2021-06-15 15:59:17 +0200
committerBartłomiej Kurzeja <bartlomiej@kurzeja.it>2021-06-15 16:02:49 +0200
commit242857c1ef286ff2c59e11803a057b4cc0a5360f (patch)
tree956444cd383cc1b8824bd2770fc3ac832aacca3c
parentbf82c02d189b5b4691e6570897e5da781b9d5aeb (diff)
utils: Support latest Debian release names
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/709>
-rw-r--r--cerbero/utils/__init__.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/cerbero/utils/__init__.py b/cerbero/utils/__init__.py
index f034af30..1fb923b8 100644
--- a/cerbero/utils/__init__.py
+++ b/cerbero/utils/__init__.py
@@ -251,17 +251,17 @@ Terminating.''', file=sys.stderr)
distro_version = DistroVersion.UBUNTU_FOCAL
elif d[1].startswith('6.'):
distro_version = DistroVersion.DEBIAN_SQUEEZE
- elif d[1].startswith('7.') or d[1].startswith('wheezy'):
+ elif d[1].startswith('7.') or d[1].startswith('wheezy') or distro_version == "wheezy":
distro_version = DistroVersion.DEBIAN_WHEEZY
- elif d[1].startswith('8.') or d[1].startswith('jessie'):
+ elif d[1].startswith('8.') or d[1].startswith('jessie') or distro_version == "jessie":
distro_version = DistroVersion.DEBIAN_JESSIE
- elif d[1].startswith('9.') or d[1].startswith('stretch'):
+ elif d[1].startswith('9.') or d[1].startswith('stretch') or distro_version == "stretch":
distro_version = DistroVersion.DEBIAN_STRETCH
- elif d[1].startswith('10.') or d[1].startswith('buster'):
+ elif d[1].startswith('10.') or d[1].startswith('buster') or distro_version == "buster":
distro_version = DistroVersion.DEBIAN_BUSTER
- elif d[1].startswith('11.') or d[1].startswith('bullseye'):
+ elif d[1].startswith('11.') or d[1].startswith('bullseye') or distro_version == "bullseye":
distro_version = DistroVersion.DEBIAN_BULLSEYE
- elif d[1] == 'unstable' and d[2] == 'sid':
+ elif d[1] == 'unstable' and distro_version == 'sid':
distro_version = DistroVersion.DEBIAN_SID
else:
raise FatalError("Distribution '%s' not supported" % str(d))