Skip to content

Commit

Permalink
Note that version() can return an empty string on rolling releases
Browse files Browse the repository at this point in the history
> close #251
  • Loading branch information
HorlogeSkynet authored Oct 16, 2021
1 parent d3e9194 commit 6ae385b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions distro.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ def version(pretty: bool = False, best: bool = False) -> str:
sources in a fixed priority order does not always yield the most precise
version (e.g. for Debian 8.2, or CentOS 7.1).
Some other distributions may not provide this kind of information. In these
cases, an empty string would be returned. This behavior can be observed
with rolling releases distributions (e.g. Arch Linux).
The *best* parameter can be used to control the approach for the returned
version:
Expand Down

0 comments on commit 6ae385b

Please sign in to comment.