Skip to content

Commit

Permalink
Note that distro.version can return an empty string against rolling…
Browse files Browse the repository at this point in the history
… releases

> close #251

[skip ci]
  • Loading branch information
Samuel FORESTIER committed Oct 10, 2021
1 parent d3e9194 commit 99817fc
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 99817fc

Please # to comment.