Skip to content

Commit

Permalink
Enumerate all other Linux distro
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Sep 18, 2024
1 parent cbedb9e commit ff85d48
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion extra_platforms/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,39 @@ def is_unknown_linux() -> bool:
Excludes WSL1 and WSL2 from this check to
`avoid false positives <https://github.com/kdeldycke/meta-package-manager/issues/944>`_.
"""
unknown_linux = sys.platform.startswith("linux") and not (is_wsl1() or is_wsl2())
unknown_linux = sys.platform.startswith("linux") and not (
is_altlinux()
or is_amzn()
or is_android()
or is_arch()
or is_buildroot()
or is_centos()
or is_cloudlinux()
or is_debian()
or is_exherbo()
or is_fedora()
or is_gentoo()
or is_guix()
or is_ibm_powerkvm()
or is_kvmibm()
or is_linuxmint()
or is_mageia()
or is_mandriva()
or is_opensuse()
or is_oracle()
or is_parallels()
or is_pidora()
or is_raspbian()
or is_rhel()
or is_rocky()
or is_scientific()
or is_slackware()
or is_sles()
or is_ubuntu()
or is_xenserver()
or is_wsl1()
or is_wsl2()
)
if unknown_linux:
logging.warning(
f"Unknow Linux detected: {distro.info()!r}. You can report this warning to"
Expand Down

0 comments on commit ff85d48

Please sign in to comment.