summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim P. DEMENTYEV <mdementyev@fluendo.com>2023-03-30 16:21:43 +0200
committerTim-Philipp Müller <tim@centricular.com>2023-04-04 19:14:52 +0100
commit9c0a43b7db651c3d18e4ee560c9fc60e04296123 (patch)
tree583718f2478b14f3403e84d1cb2672b4d2e7819f
parent45793a42700cd08a50ae5c2fc14e9e2007456cfb (diff)
Modern Gentoo distro adaptation
Otherwise: File "..../cerbero/cerbero/utils/__init__.py", line 333, in system_info raise FatalError("Distribution '%s' not supported" % str(d)) cerbero.errors.FatalError: Fatal Error: Distribution '('Gentoo', '2.9', 'n/a')' not supported On my distribution: $ cat /etc/gentoo-release Gentoo Base System release 2.9 $ cat /etc/os-release NAME=Gentoo ID=gentoo PRETTY_NAME="Gentoo Linux" ANSI_COLOR="1;32" HOME_URL="https://www.gentoo.org/" SUPPORT_URL="https://www.gentoo.org/support/" BUG_REPORT_URL="https://bugs.gentoo.org/" VERSION_ID="2.9" Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1160>
-rw-r--r--cerbero/utils/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cerbero/utils/__init__.py b/cerbero/utils/__init__.py
index 77af5e9a..2c6c0dbb 100644
--- a/cerbero/utils/__init__.py
+++ b/cerbero/utils/__init__.py
@@ -339,7 +339,7 @@ Terminating.''', file=sys.stderr)
elif d[0].strip() in ['arch', 'Arch Linux']:
distro = Distro.ARCH
distro_version = DistroVersion.ARCH_ROLLING
- elif d[0].strip() in ['Gentoo Base System']:
+ elif d[0].strip() in ['Gentoo Base System', 'Gentoo']:
distro = Distro.GENTOO
distro_version = DistroVersion.GENTOO_VERSION
else: