Skip to content

Commit 99817fc

Browse files
author
Samuel FORESTIER
committed
Note that distro.version can return an empty string against rolling releases
> close #251 [skip ci]
1 parent d3e9194 commit 99817fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

distro.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,10 @@ def version(pretty: bool = False, best: bool = False) -> str:
308308
sources in a fixed priority order does not always yield the most precise
309309
version (e.g. for Debian 8.2, or CentOS 7.1).
310310
311+
Some other distributions may not provide this kind of information. In these
312+
cases, an empty string would be returned. This behavior can be observed
313+
with rolling releases distributions (e.g. Arch Linux).
314+
311315
The *best* parameter can be used to control the approach for the returned
312316
version:
313317

0 commit comments

Comments
 (0)