�
i��dy � �t � d dl Z d dlZd dlmZmZ d dlmZ d dlmZ d dl m
Z G d� de� Z G d� d e� Z
y)
� N)�RedHatPlugin�
SuSEPlugin)�LinuxPolicy)�RpmPackageManager)�_sosc �T � � e Zd ZdZdZdgZdZ d� fd� Zed d�� Z d� Z
d� Z� xZS )
�
SuSEPolicy�SuSE)zDistribution Websitezhttps://www.suse.com/z/var/tmpc �� �� t t | � ||||�� | xj t t
gz
c_ d| _ t � | _ | j j s0| j j d� t j d� d| _ | xj t j dz z
c_ | xj t j dz z
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_subclassesr r �usrmover �package_manager�packages�ui_log�error�sys�exit�PATH�os�pathsep�
set_exec_path��selfr
r r r � __class__s ��;/usr/lib/python3/dist-packages/sos/policies/distros/suse.pyr zSuSEPolicy.__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 �" |