File: //usr/lib/python3/dist-packages/sos/policies/distros/__pycache__/ubuntu.cpython-312.pyc
�
O6uf�
� �^ � d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl m
Z
G d� de� Zy) � N)�UbuntuPlugin)�DebianPolicy)�SnapPackageManager)�DpkgPackageManager)�MultiPackageManagerc �z � � e Zd ZdZdZddgZdZdZdZdZ dZ
d� fd � Zedd
�� Z
d� Z� fd�Zd
� Z� fd�Z� xZS )�UbuntuPolicy�Ubuntu� Canonical)zCommunity Websitezhttps://www.ubuntu.com/)zCommercial Supportzhttps://www.canonical.comzb/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/sbin:/usr/local/bin:/snap/binz,https://files.support.canonical.com/uploads/�ubuntu�putc � �� t �| � ||||�� t t t g| j
|�� | _ | j j d� d dk( rd| _ | xj t gz
c_
y # t $ r Y �&w xY w)N)�sysroot�init�
probe_runtime�remote_exec)�primary� fallbacks�chrootr � sosreport�pkg_manager�snapz /snap/bin)�super�__init__r r r r �package_manager�pkg_by_name�sos_bin_path� TypeError�valid_subclassesr )�selfr r r r � __class__s ��=/usr/lib/python3/dist-packages/sos/policies/distros/ubuntu.pyr zUbuntuPolicy.__init__! s� �� �
����t�'4�%0� � 2� 3�&�)�*��<�<�#� %��� ��#�#�/�/��!�!.�0�39�:�$/��!�
���,��/��� � �� �s �(B � B�Bc � � |r| j |v S t dd� 5 }d|j � v cddd� S # 1 sw Y yxY w# t $ r Y yw xY w)z[This method checks to see if we are running on Ubuntu.
It returns True or False.�/etc/lsb-release�rr
NF)�distro�open�read�IOError)�cls�remote�fps r"