forked from python-distro/distro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…ython-distro#262) * Honors `/usr/lib/os-release` when `/etc/os-release` is not available See <https://www.freedesktop.org/software/systemd/man/os-release.html#Description>. * Updates documentation according to the new (but expected) behavior * Partially reverts `c7e88ba` based on @hartwork comments * Renames `UNIXLIBSDIR` according to @hartwork thoughts * Follow-up to `90ceac8` according to @hartwork findings * Prefers a fully API backward-compatible implementation for `c7e88baa` Co-authored-by: Sebastian Pipping <[email protected]> * Re-adds an empty new-line that somehow got lost in `distro.py` * Don't touch those lines to keep the final patch clean * Removes a leftover empty new-line wrongly kept across previous commits [skip ci] * Fixes BLACK linting Co-authored-by: Sebastian Pipping <[email protected]>
- Loading branch information
1 parent
53a031d
commit b5a1a1e
Showing
5 changed files
with
46 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
tests/resources/testdistros/distro/usrlibosreleaseonly/usr/lib/os-release
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
NAME="usr_lib_os-release_only" | ||
ID=usrlibosreleaseonly | ||
PRETTY_NAME="/usr/lib/os-release only" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters