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

\��h
�@s,ddlmZmZmZGdd�deee�ZdS)�)�Plugin�UbuntuPlugin�DebianPlugincs0eZdZdZdZd
Zdd�Z�fdd	�Z�ZS)�AptzAPT - advanced packaging toolZapt�system�sysmgmt�packagemanagercCsz|jdddg�|jd�|jd�|jdddd	d
g�|jd�}|dj�}d
jdd�|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 policyzapt-mark showholdz/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�|jddddg�dS)Nz/etc/apt/sources.listz/etc/apt/sources.list.d/z/etc/apt/apt.confz/etc/apt/apt.conf.d/)�super�postprocZdo_paths_http_sub)r)�	__class__rrr1s
zApt.postproc)rrr)	�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesrr�
__classcell__rr)rrrs
rN)Zsos.report.pluginsrrrrrrrr�<module>s