mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-06 09:52:14 +01:00
app-emulation/wa-linux-agent: Add dependency on dev-python/distro-oem
WALinuxAgent falls back to using the `distro` module to figure out the distribution details in case the `get_linux_distribution` function from the builtin `platform` module is not able to do it. With the update of python-oem to python3, the distribution detection broke, because we stopped carrying a patch that implemented fetching the distribution information from `/etc/os-release`. It does not make sense to backport that patch though, because `platform.get_linux_distribution` is deprecated and removed in python 3.7 or 3.8. So when we update python3 to the newer version, we would need to add the `distro` module anyway. Maybe we can drop `distro-oem` module in future, when python-oem will use version 3.10 and WALinuxAgent starts using the newly added functionality in 3.10 to figure out the distribution information.
This commit is contained in:
parent
8ff3d67fcb
commit
4827507851
@ -12,7 +12,10 @@ LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-lang/python-oem"
|
||||
RDEPEND="
|
||||
dev-lang/python-oem
|
||||
dev-python/distro-oem
|
||||
"
|
||||
|
||||
S="${WORKDIR}/WALinuxAgent-${PV}"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user