%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/sos/policies/distros/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/sos/policies/distros/__pycache__/suse.cpython-312.pyc

�

i��dy��t�ddlZddlZddlmZmZddlmZddlmZddl	m
ZGd�de�ZGd�d	e�Z
y)
�N)�RedHatPlugin�
SuSEPlugin)�LinuxPolicy)�RpmPackageManager)�_sosc�T��eZdZdZdZdgZdZ		d�fd�	Zed	d��Z	d�Z
d�Z�xZS)
�
SuSEPolicy�SuSE)zDistribution Websitezhttps://www.suse.com/z/var/tmpc����tt|�||||��|xjtt
gz
c_d|_t�|_|jjs0|jjd�tjd�d|_|xjtj dzz
c_|xjtj dzz
c_|j#�y)N��sysroot�init�
probe_runtime�remote_execFz(Could not obtain installed package list.�z"/usr/sbin:/usr/bin:/root/bin:/sbinz/usr/local/binz/usr/local/sbin)�superr	�__init__�valid_subclassesrr�usrmover�package_manager�packages�ui_log�error�sys�exit�PATH�os�pathsep�
set_exec_path��selfr
rrr�	__class__s     ��;/usr/lib/python3/dist-packages/sos/policies/distros/suse.pyrzSuSEPolicy.__init__s����
�j�$�(��t�7D�5@�	)�	B�	
���*�l�!;�;�����0�2����#�#�,�,��K�K���H�I��H�H�Q�K�8��	��	�	�R�Z�Z�"2�2�2�	��	�	�R�Z�Z�"3�3�3�	�����c��y)z�This method checks to see if we are running on SuSE. It must be
        overriden by concrete subclasses to return True when running on an
        OpenSuSE, SLES or other Suse distribution and False otherwise.F���cls�remotes  r#�checkzSuSEPolicy.check-s��
r$c�"�|s|jS|S�N)�_tmp_dir)r!�opt_tmp_dirs  r#�get_tmp_dirzSuSEPolicy.get_tmp_dir4s����=�=� ��r$c�"�|j�Sr,)�	host_name)r!s r#�get_local_namezSuSEPolicy.get_local_name9s���~�~��r$�NNTN)�)
�__name__�
__module__�__qualname__�distro�vendor�vendor_urlsr-r�classmethodr*r/r2�
__classcell__�r"s@r#r	r	sC���
�F�
�F�D�E�K��H�>B�!��(�����
 r$r	c�R��eZdZdZdZdgZed�Z		d�fd�	Ze	d��Z
�xZS)�OpenSuSEPolicy�OpenSuSEr
)zCommunity Websitezhttps://www.opensuse.org/aJThis command will collect diagnostic and configuration information from this %(distro)s system and installed applications.

An archive containing the collected information will be generated in %(tmpdir)s and may be provided to a %(vendor)s support representative.

No changes will be made to system configuration.
%(vendor_text)s
c�4��tt|�||||��y)Nr)rr?rr s     �r#rzOpenSuSEPolicy.__init__Ns"���
�n�d�,�W�4�;H�9D�	-�	Fr$c�`�|r|j|vStjjd�S)z=This method checks to see if we are running on SuSE.
        z/etc/SUSE-brand)r8r�path�isfiler's  r#r*zOpenSuSEPolicy.checkTs*��
��:�:��'�'��w�w�~�~�/�0�0r$r3)r5r6r7r8r9r:�_�msgrr;r*r<r=s@r#r?r?=sG���
�F�
�F�E�F�K�
�
��C�?C�!�F��1��1r$r?)rr�sos.report.pluginsrr�sos.policies.distrosr�!sos.policies.package_managers.rpmr�sosrrEr	r?r&r$r#�<module>rKs2��
�
�7�,�?��' ��' �T1�Z�1r$

Zerion Mini Shell 1.0