Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/unpackaged.cpython-310.pyc
o

i��d�
�@sBddlmZmZddlZddlZddlmZGdd�dee�ZdS)�)�Plugin�RedHatPluginN)�Pathc@seZdZdZdZdd�ZdS)�
UnpackagedzDCollects a list of files that are not handled by the package manager�
unpackagedc	s�dd�}d�fdd�	}�fdd�}�jdd�sdS��d	��A}|��g}t�fd
d��j��jj���D����D]}|||�7}q9�fdd
�|D�}||�}|�d�|��Wd�dS1sbwYdS)NcSstjd�d�S)z3Return a list of directories in $PATH.
            �PATH�:)�os�environ�split�rr�?/usr/lib/python3/dist-packages/sos/report/plugins/unpackaged.py�get_env_path_listsz-Unpackaged.collect.<locals>.get_env_path_listc
s�g}tj|dd�D]d\}}}|r"|D]��fdd�|D�|dd�<q|D]2}��||�}zt�t�|�j�r<t|���}Wn	t	yFYq$w|�
��||�tj�|�g�q$|D]}��||�}|�
|tj�|�g�qYq	|S)z�Return 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)�topdowncsg|]}|�vr|�qSrr)�.0�d��err
�
<listcomp>)sz@Unpackaged.collect.<locals>.all_files_system.<locals>.<listcomp>N)
r	�walk�	path_join�stat�S_ISLNK�lstat�st_moder�resolve�	Exception�append�path�realpath)r�exclude�	file_list�root�dirs�files�name��selfrr
�all_files_systems,����z,Unpackaged.collect.<locals>.all_files_systemcsxg}|D]5}��|�}|�}d}��|�r2|dkr2t�|�}|d|��7}|d7}��|�r2|dks|�|d�q|S)z4Format the unpackaged list as a string.
            r�
z -> ��
)r�path_islinkr	�readlinkr)r$�expanded�f�fp�out�linksr&rr
�
format_output:s

�z)Unpackaged.collect.<locals>.format_outputT)�cmdrc3s2�|]�t�fdd��D��rtj���VqdS)csg|]}��|��qSr)�
startswith)r�p��xrr
rWsz0Unpackaged.collect.<locals>.<genexpr>.<listcomp>N)�anyr	rr)r)�pathsr7r
�	<genexpr>Ts��

�z%Unpackaged.collect.<locals>.<genexpr>csg|]
\}}|�vr|�qSrr)rr8�rp)�all_frpmrr
r\sz&Unpackaged.collect.<locals>.<listcomp>�)N)	�test_predicate�collection_file�set�policy�mangle_package_path�package_manager�	all_files�write�join)	r'rr(r3�ufile�all_fsystemr�not_packaged�not_packaged_expandedr)r=r:r'r
�collects&
��"�zUnpackaged.collectN)�__name__�
__module__�__qualname__�
short_desc�plugin_namerLrrrr
rsr)�sos.report.pluginsrrr	r�pathlibrrrrrr
�<module>s


Spamworldpro Mini