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
Clarify that distro.version() can return an empty string in case of rolling distributions #251
I ran into an interesting bug while doing some testing on Firefox (https://bugzilla.mozilla.org/show_bug.cgi?id=1609483).
Basically, if no version information is provided distro.version() returns an empty string and that was unexpected. https://www.freedesktop.org/software/systemd/man/os-release.html states providing no version information is valid behaviour for rolling release distributions (such as Arch Linux), so I guess this is also acceptable behaviour for this package?
I was wondering if the documentation could be changed to reflect that.
From OS-RELEASE(5) documentation (as you pointed out) :
Note that operating system vendors may choose not to provide version information, for example to accommodate for rolling releases. In this case, VERSION and VERSION_ID may be unset. Applications should not rely on these fields to be set.
@jmetrius You're right, contributions are welcome 🙂
Activity
HorlogeSkynet commentedon Sep 26, 2021
From OS-RELEASE(5) documentation (as you pointed out) :
@jmetrius You're right, contributions are welcome 🙂
Note that `distro.version` can return an empty string against rolling…
HorlogeSkynet commentedon Oct 10, 2021
Closing here as #312 is on its way.
Note that `distro.version` can return an empty string against rolling…
Note that `distro.version` can return an empty string against rolling…
Note that `version()` can return an empty string on rolling releases
Note that `version()` can return an empty string on rolling releases
Note that `version()` can return an empty string on rolling releases