Skip to content

Clarify that distro.version() can return an empty string in case of rolling distributions #251

Closed

Description

@jmetrius

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.

Activity

  1. HorlogeSkynet commented on Sep 26, 2021

    @HorlogeSkynet
    Member

    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 🙂

  2. added this to the 1.6.1 milestone on Oct 9, 2021
  3. added a commit that references this issue on Oct 10, 2021
    8d3d417
  4. HorlogeSkynet commented on Oct 10, 2021

    @HorlogeSkynet
    Member

    Closing here as #312 is on its way.

  5. added 3 commits that reference this issue on Oct 10, 2021
    c044765
    99817fc
    6ae385b
  6. added a commit that references this issue on Jun 7, 2022
    6a257a0
  7. added a commit that references this issue on Jun 21, 2022
    492e693
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions