info

Functions for interrogating a system to determine general attributes.

Specifically, anything that doesn’t fit better in other modules where we also manipulate this information (such as packages). For example, detecting operating system family and version.

patchwork.info.distro_family(c)

Returns basic “family” ID for the remote system’s distribution.

Currently, options include:

  • debian
  • redhat

If the system falls outside these categories, its specific family or release name will be returned instead.

patchwork.info.distro_name(c)

Return simple Linux distribution name identifier, e.g. "ubuntu".

Uses tools like /etc/issue, and lsb_release and fits the remote system into one of the following:

  • fedora
  • rhel
  • centos
  • ubuntu
  • debian
  • other