Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

distro.version() returns 'n/a' in Debian13 #373

Open
nagworld9 opened this issue Dec 20, 2024 · 1 comment · May be fixed by #374
Open

distro.version() returns 'n/a' in Debian13 #373

nagworld9 opened this issue Dec 20, 2024 · 1 comment · May be fixed by #374

Comments

@nagworld9
Copy link

nagworld9 commented Dec 20, 2024

distro.version() is supposed to eliminate n/a and empty values when other sources contain valid values.

>>> import distro
>>> distro.version()
'n/a'

It returns n/a because lsb_release -a has that value, even though /etc/debian_version contains a valid value

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux trixie/sid
Release:	n/a
Codename:	trixie

$ cat /etc/debian_version 
trixie/sid
@HorlogeSkynet
Copy link
Member

Thanks for your report @nagworld9 ! Please see #374.
Bye 👋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants