+
    G%@i                     J    ^ RI Ht ^ RIt^ RIt^ RIHtHt  ! R R]]4      tR# )    )PathN)PluginRedHatPluginc                   .   a  ] tR t^t o RtRtR tRtV tR# )
UnpackagedzDCollects a list of files that are not handled by the package manager
unpackagedc           	     B  a a R  pR	V 3R llpV 3R lpS P                  RR7      '       g   R# S P                  R4      ;_uu_ 4       pV! 4       o. p\        V3R lS P                  P	                  S P                  P
                  P                  4       4       4       4      pS F  pWR! V4      ,          pK  	  V UU	u. uF  w  rW9  g   K  VNK  	  p
pp	V! V
4      pVP                  RP                  V4      4       RRR4       R# u up	pi   + '       g   i     R# ; i)
c                 N    \         P                  R,          P                  R4      # )z3Return a list of directories in $PATH.
            PATH:)osenvironsplit     ?/usr/lib/python3/dist-packages/sos/report/plugins/unpackaged.pyget_env_path_list-Unpackaged.collect.<locals>.get_env_path_list   s     ::f%++C00r   Nc                  < . p\         P                  ! V RR7       EF,  w  r4pV'       d'   V F   pV Uu. uF  qwV9  g   K  VNK  	  upVR&   K"  	  V F  pS	P                  W84      p  \        P                  ! \         P
                  ! V 4      P                  4      '       d   \        V 4      P                  4       p TP                  S	P                  Y84      \         P                  P                  T 4      .4       K  	  V FD  pS	P                  W84      pVP                  V\         P                  P                  V4      .4       KF  	  EK/  	  V# u upi   \         d     EK  i ; i)zReturn 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:NNN)r   walk	path_joinstatS_ISLNKlstatst_moder   resolve	Exceptionappendpathrealpath)
r    exclude	file_listrootdirsfilesexcdnameselfs
   &&       r   all_files_system,Unpackaged.collect.<locals>.all_files_system   s-    I%'WWT4%@%@!E&.2"Cdsl11d"CQ  '!D>>$5D!<<(>(>??#':#5#5#7D $$3RWW5E5Ed5KL " !D>>$5D$$dBGG,<,<T,B%CD ! &A$  #D % ! !s   EE(AEE$#E$c                  < . pV  F|  pSP                  V4      pT p^ pSP                  V4      '       d5   V^
8  d.   \        P                  ! V4      pVRV 2,          pV^,          pKK  VP	                  VR,           4       K~  	  V# )z4Format the unpackaged list as a string.
            z -> 
)r   path_islinkr   readlinkr   )r&   expandedfileoutlinksr*   s   &    r   format_output)Unpackaged.collect.<locals>.format_output9   s     H~~d+
 &&t,,;;t,DT$=(CQJEd
+  Or   T)cmdr   c              3      <a"   T Ff  o\         ;QJ d    V3R  lS 4       F  '       g   K   RM	  RM! V3R  lS 4       4      '       g   KE  \        P                  P                  S4      x  Kh  	  R# 5i)c              3   F   <"   T F  pSP                  V4      x  K  	  R # 5iN)
startswith).0pxs   & r   	<genexpr>/Unpackaged.collect.<locals>.<genexpr>.<genexpr>V   s     8%Qa%s   !TFN)anyr   r    r!   )r<   r>   pathss   &@r   r?   %Unpackaged.collect.<locals>.<genexpr>S   sN      .S8%8SSS8%88 $  ## .s   A2A2A2'A2 r:   )	test_predicatecollection_filesetpolicymangle_package_pathpackage_manager	all_fileswritejoin)r*   r   r+   r5   ufileall_fsystemall_frpmr    r>   rpnot_packagednot_packaged_expandedrB   s   f           @r   collectUnpackaged.collect   s    	1
	:	( ""t",,!!,//5%'EK -1[[-L-LKK//99;. H /55 -8O['1B<NAA[LO$1,$?!KK 567 0/ P 0//s%   A6D=
D
D
+DDD	r   N)	__name__
__module____qualname____firstlineno__
short_descplugin_namerT   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s     $JKI8 I8r   r   )pathlibr   r   r   sos.report.pluginsr   r   r   r   r   r   <module>ra      s#     	  3O8 O8r   