You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Distro 1.40: possible regression in distro.codename() #238
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04 LTS Release: 20.04 Codename: focal
From the documentation, I thought that, on most Linux distros at least, distro.codename() should produce results identical to awk -F '[()]' '/VERSION=/ {print $2}' /etc/os-release. Is this no longer the case?
You are right, it looks like #230 broke this, and thus the compatibility shim with platform.linux_distribution.
Unfortunately, test cases verifying distro.linux_distribution behavior were (and still are) based on Ubuntu 14.04 materials, which do not contain VERSION_CODENAME attribute (so in this case the distribution "id" still comes from VERSION parsing). distro.linux_distribution method has been deprecated in distro v1.6.0 (see #296), but I think we should fix this regression anyway as this module is still considered as a drop-in alternative to defunct platform.linux_distribution method.
Activity
albertodonato commentedon Jun 25, 2020
This also breaks compatibility between
platform.linux_distributionanddistro.linux_distribution:HorlogeSkynet commentedon Feb 12, 2022
You are right, it looks like #230 broke this, and thus the compatibility shim with
platform.linux_distribution.Unfortunately, test cases verifying
distro.linux_distributionbehavior were (and still are) based on Ubuntu 14.04 materials, which do not containVERSION_CODENAMEattribute (so in this case the distribution "id" still comes fromVERSIONparsing).distro.linux_distributionmethod has been deprecated in distro v1.6.0 (see #296), but I think we should fix this regression anyway as this module is still considered as a drop-in alternative to defunctplatform.linux_distributionmethod.Restores compatibility shim with `platform.linux_distribution`
Restores compatibility shim with `platform.linux_distribution`
Restores compatibility shim with `platform.linux_distribution`
Restores compatibility shim with `platform.linux_distribution`
Restores compatibility shim with `platform.linux_distribution`
Restores compatibility shim with `platform.linux_distribution`
Restores compatibility shim with `platform.linux_distribution`