AlkantarClanX12

Your IP : 3.144.106.207


Current Path : /proc/self/root/lib/python3.6/site-packages/rhn/actions/__pycache__/
Upload File :
Current File : //proc/self/root/lib/python3.6/site-packages/rhn/actions/__pycache__/errata.cpython-36.pyc

3

%T�f�	�@sfddlmZddlmZddlmZddlmZdgZdZdd�Zdd
d�Z	dd�Z
ed
krbe
�d	S)�)�	rhnserver)�up2dateAuth)�pkgUtils)�packages�update�cCstj�}|jjtj�|�S)N)rZ	RhnServerZerrataZ
getErrataInforZgetSystemId)Z	errata_id�s�r	�/usr/lib/python3.6/errata.py�__getErrataInfosrNc
Cs�g}t|�tg�tf�gkr"|g}x|D]}t|�}||}q(Wi}i}x4tjdd�D]$}|||d|d<|||d<qVWi}t|d�dk�rx�|D]|}d|d|df|kr�|||d|d<q�d|d|kr�|||d|d<q�|dd	kr�|d|kr�|||d<q�Wn*x(|D] }|d|k�r"|||d<�q"Wt|j��}|gk�r�i}	d
|	d<d|	d<||	d
<dd|	fStj||�S)N�)ZgetArch�nameZarchr�z%s%sz%snoarchZnoarch�0�versionzerrata.update.no_packagesZerratas�'z*No packages from that errata are available)	�typerrZgetInstalledPackageList�len�list�valuesrr)
ZerrataidlistZ
cache_onlyZpackagelistZerrataidZtmpListZcurrent_packages_with_archZcurrent_packages�p�u�datar	r	r
rsB



cCsttdg��dS)Ni�ie)�printrr	r	r	r
�mainPsr�__main__)N)Zup2date_clientrrrZrhn.actionsrZ
__rhnexport__ZACTION_VERSIONrrr�__name__r	r	r	r
�<module>
s
7