Sindbad~EG File Manager

Current Path : /lib/python3.6/site-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/sos/report/plugins/__pycache__/apt.cpython-36.pyc

3

�fi�@s,ddlmZmZmZGdd�deee�ZdS)�)�Plugin�UbuntuPlugin�DebianPlugincs0eZdZdZdZd
Zdd�Z�fdd	�Z�ZS)�AptzAPT - advanced packaging toolZapt�system�sysmgmt�packagemanagercCsx|jdddg�|jd�|jd�|jdddd	g�|jd
�}|dj�}djd
d�|D��}|jd|��dd�dS)Nz/etc/aptz/var/log/aptz/var/log/unattended-upgradesz/etc/apt/auth.confz/etc/apt/auth.conf.d/z
apt-get checkzapt-config dumpzapt-cache statszapt-cache policyz/dpkg-query -W -f='${binary:Package}	${status}
'�output� cSs"g|]}d|kr|jd�d�qS)zok installed�	r)�split)�.0�v�r�/usr/lib/python3.6/apt.py�
<listcomp>*szApt.setup.<locals>.<listcomp>zapt-cache policy zapt-cache_policy_details)Zsuggest_filename)Z
add_copy_specZadd_forbidden_pathZadd_cmd_outputZexec_cmd�
splitlines�join)�selfZdpkg_resultZdpkg_outputZpkg_listrrr�setups&

z	Apt.setupcs*t�j�|jddd�|jddd�dS)Nz/etc/apt/sources.listz(deb\shttp(s)?://)\S+:\S+(@.*)z\1******:******\3z/etc/apt/sources.list.d/)�super�postprocZdo_file_subZdo_path_regex_sub)r)�	__class__rrr0s
zApt.postproc)rrr)	�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesrr�
__classcell__rr)rrrs
rN)Zsos.report.pluginsrrrrrrrr�<module>s

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists