Current File : //usr/lib/python3/dist-packages/landscape/lib/__pycache__/os_release.cpython-312.pyc |
�
�~�e � �8 � d Z ddlZdZdZdZdddd d
�Zd� Zd
d�Zy)z Get information from os-release.� Nz$/var/lib/snapd/hostfs/etc/os-releasez/etc/os-releasez/usr/lib/os-releasezdistributor-id�description�releasez code-name)�NAME�PRETTY_NAME�
VERSION_ID�VERSION_CODENAMEc �6 � t } t j j | � r$t j | t j
� sOt } t j j | � r$t j | t j
� st } | S )a3
Provide the appropriate file for os release info.
If a snap, we want the host os so need to use
/var/lib/snapd/hostfs/etc/os-release, if not a snap
/etc/os-release will be used as first fallback or
/usr/lib/os-release as a fallback as indicated in os-release
at Freedesktop.org
)�OS_RELEASE_FILENAME�os�path�exists�access�R_OK�OS_RELEASE_FILENAME_FALLBACK)�os_filenames �:/usr/lib/python3/dist-packages/landscape/lib/os_release.py�get_os_filenamer sg � � &�K�
�7�7�>�>�+�&�b�i�i��
���/� 3���w�w�~�~�k�*�"�)�)���G�G�3
� 7�K��� c �$ � i }| �
t � } t | � 5 }|D ]Z }|j d� \ }}|t v s� t |j � }|j � j d� }|||<