Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve system detection for openSUSE style distributions #723

Merged
merged 2 commits into from
Aug 24, 2023

Conversation

dirkmueller
Copy link
Contributor

openSUSE distributions can have rpm, dnf and dpkg installed at the same time, but the system is always maintained via rpm. so explicitly detect it as such. Also don't trust lsb-release too much, /etc/os-release is the preferred method so pick that one first.

dpkg-query could be installed which would make it fall back to debian,
which is however incorrect.
On systems lsb_release could be patched to return a "compatible"
distribution, not the native one. so prefer the modern /etc/os-release
over lsb_release.
@philpep philpep added the bug This issue/PR relates to a bug. label Aug 24, 2023
@philpep philpep merged commit fee868d into pytest-dev:main Aug 24, 2023
5 of 7 checks passed
@philpep
Copy link
Contributor

philpep commented Aug 24, 2023

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants