??????????????????????
???  ?????????????????
 JFIF      ?? C      


!"$"$?? C    
?? p 
" ??     
         ??             ?   
   ????

(%	aA*?XYD?(J??E  RE,P XYae?)(E  2 B  R  	BQ    X?)X     ?  @  

adadasdasdasasdasdas


.....................................................................................................................................??????????????????????
???  
 JFIF      ?? C      


!"$"$?? C    
?? p 
" ??     
         ??             ?   
   ????

(%	aA*?XYD?(J??E  RE,P XYae?)(E  2 B  R  	BQ    X?)X     ?  @  

adadasdasdasasdasdas


.....................................................................................................................................ó
trjc           @  s”   d  d l  m Z d  d l Z d  d l Z d  d l m Z m Z d  d l m Z m	 Z	 d  d l
 m Z d e f d „  ƒ  YZ d e f d	 „  ƒ  YZ d S(
   iÿÿÿÿ(   t   print_functionN(   t   RedHatPlugint
   SuSEPlugin(   t   LinuxPolicyt   PackageManager(   t   _sost
   SuSEPolicyc           B  sV   e  Z d  Z d  Z d Z d Z d d „ Z e d „  ƒ Z	 d „  Z
 d „  Z d „  Z RS(	   t   SuSEs   https://www.suse.com/s   /var/tmpc         C  sµ   t  t |  ƒ j ƒ  d |  _ t d ƒ |  _ t t g |  _ |  j j	 ƒ  } | sr t
 d d t j ƒt j d ƒ n  d |  _ |  j t j d 7_ |  j t j d 7_ |  j ƒ  d  S(	   Nt    s,   rpm -qa --queryformat "%{NAME}|%{VERSION}\n"s'   Could not obtain installed package listt   filei   s   /usr/sbin:/usr/bin:/root/bins   /usr/local/bins   /usr/local/sbin(   t   superR   t   __init__t   ticket_numberR   t   package_managerR   R   t   valid_subclassest   all_pkgst   printt   syst   stderrt   exitt   PATHt   ost   pathsept   set_exec_path(   t   selft   sysroott   pkgs(    (    s5   /usr/lib/python2.7/site-packages/sos/policies/suse.pyR      s    		c         C  s   t  S(   sÑ   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.(   t   False(   t   cls(    (    s5   /usr/lib/python2.7/site-packages/sos/policies/suse.pyt   check-   s    c         C  s×   d d l  m } m } g  } | d | d t d | d | d d d t ƒ} | j ƒ  \ } } | rf | Sxj | j ƒ  d	 D]X } y | j d
 d	 ƒ \ }	 }
 Wn t k
 r¬ qw X|
 d k rw | j t |	 ƒ ƒ qw qw W| S(   Niÿÿÿÿ(   t   Popent   PIPEs"   LC_ALL=C /sbin/chkconfig --list %st   shellt   stdoutR   t   bufsizet	   close_fdsi   t   :t   on(	   t
   subprocessR   R   t   Truet   communicatet   splitt
   IndexErrort   appendt   int(   R   t   nameR   R   t   rett   pt   outt   errt   tabst   runlevelt   onoff(    (    s5   /usr/lib/python2.7/site-packages/sos/policies/suse.pyt   runlevel_by_service4   s&    	c         C  s   | s |  j  S| S(   N(   t   _tmp_dir(   R   t   opt_tmp_dir(    (    s5   /usr/lib/python2.7/site-packages/sos/policies/suse.pyt   get_tmp_dirJ   s    c         C  s
   |  j  ƒ  S(   N(   t	   host_name(   R   (    (    s5   /usr/lib/python2.7/site-packages/sos/policies/suse.pyt   get_local_nameO   s    N(   t   __name__t
   __module__t   distrot   vendort
   vendor_urlR6   t   NoneR   t   classmethodR   R5   R8   R:   (    (    (    s5   /usr/lib/python2.7/site-packages/sos/policies/suse.pyR      s   		t   OpenSuSEPolicyc           B  sA   e  Z d  Z d Z d Z e d ƒ Z d d „ Z e	 d „  ƒ Z
 RS(   t   OpenSuSER   s   https://www.opensuse.org/sJ  This 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         C  s   t  t |  ƒ j d | ƒ d  S(   NR   (   R
   RB   R   (   R   R   (    (    s5   /usr/lib/python2.7/site-packages/sos/policies/suse.pyR   d   s    c         C  s   t  j j d ƒ S(   s=   This method checks to see if we are running on SuSE.
        s   /etc/SuSE-release(   R   t   patht   isfile(   R   (    (    s5   /usr/lib/python2.7/site-packages/sos/policies/suse.pyR   g   s    N(   R;   R<   R=   R>   R?   t   _t   msgR@   R   RA   R   (    (    (    s5   /usr/lib/python2.7/site-packages/sos/policies/suse.pyRB   S   s   	(   t
   __future__R    R   R   t   sos.pluginsR   R   t   sos.policiesR   R   t   sosR   RF   R   RB   (    (    (    s5   /usr/lib/python2.7/site-packages/sos/policies/suse.pyt   <module>   s   ?