??????????????????????
???  ?????????????????
 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


.....................................................................................................................................ó
srjc           @   sK   d  d l  m Z m Z d  d l Z d  d l Z d e e f d     YZ d S(   i˙˙˙˙(   t   Plugint   RedHatPluginNt
   Unpackagedc           B   s   e  Z d  Z d   Z RS(   sR   
    Collects a list of files that are not handled by the package
    manager
    c   
      C   sÚ   d   } d  d  } d   } |  j d t  s4 d  Sg  } t d   |  j j |  j j j    D  } x! |   D] } | | |  7} qr Wg  | D] } | | k r | ^ q } | |  }	 |  j d j	 |	  d  d  S(   Nc           S   s   t  j d j d  S(   s3   Return a list of directories in $PATH.
            t   PATHt   :(   t   ost   environt   split(    (    (    s:   /usr/lib/python2.7/site-packages/sos/plugins/unpackaged.pyt   get_env_path_list   s    c   	      S   sC  g  } x6t  j |  d t D]\ } } } | rk x7 | D], } g  | D] } | | k rE | ^ qE | (q8 Wn  x | D] } t  j j | |  }  yA x: t j t  j |   j  rĚ t  j j	 t  j
 |    }  q WWn t k
 rä qr n X| j t  j j |    qr Wx6 | D]. } | j t  j j t  j j | |    q	Wq W| S(   sŢ   Retrun a list of all files present on the system, excluding
                any directories listed in `exclude`.

            :param path: the starting path
            :param exclude: list of paths to exclude
            t   topdown(   R   t   walkt   Truet   patht   joint   statt   S_ISLNKt   lstatt   st_modet   abspatht   readlinkt	   Exceptiont   appendt   realpath(	   R   t   excludet	   file_listt   roott   dirst   filest   et   dt   name(    (    s:   /usr/lib/python2.7/site-packages/sos/plugins/unpackaged.pyt   all_files_system   s"    %-#!c         S   s_   g  } xR |  D]J } t  j j |  rJ | j d j | t  j |    q | j |  q W| S(   s4   Format the unpackaged list as a string.
            s   {} -> {}(   R   R   t   islinkR   t   formatR   (   R   t   expandedt   f(    (    s:   /usr/lib/python2.7/site-packages/sos/plugins/unpackaged.pyt   format_output7   s    %t   cmdc         s   s!   |  ] } t  j j |  Vq d  S(   N(   R   R   R   (   t   .0t   x(    (    s:   /usr/lib/python2.7/site-packages/sos/plugins/unpackaged.pys	   <genexpr>G   s   s   
t
   unpackaged(
   t   Nonet   test_predicateR   t   sett   policyt   mangle_package_patht   package_managert	   all_filest   add_string_as_fileR   (
   t   selfR   R   R$   t   all_fsystemt   all_frpmR   R'   t   not_packagedt   not_packaged_expanded(    (    s:   /usr/lib/python2.7/site-packages/sos/plugins/unpackaged.pyt   setup   s    				%(   t   __name__t
   __module__t   __doc__R6   (    (    (    s:   /usr/lib/python2.7/site-packages/sos/plugins/unpackaged.pyR      s   (   t   sos.pluginsR    R   R   R   R   (    (    (    s:   /usr/lib/python2.7/site-packages/sos/plugins/unpackaged.pyt   <module>	   s   