3 ©ft`? ã @ sV d dl mZ d dl mZ d dlmZ d dlmZ d dlZd dlZ G dd„ dej ƒZdS )é )Úabsolute_import)Úunicode_literals)Ú_)ÚcommandsNc @ s8 e Zd ZdZdZedƒZedd„ ƒZdd„ Z dd „ Z d S )ÚCheckCommandzSA class containing methods needed by the cli to execute the check command. Úcheckz#check for problems in the packagedbc C sœ | j ddddtdƒd� | j ddddtd ƒd� | j d dddtdƒd� | j d dddtdƒd� | j ddddtdƒd� | j dddddddg gtjd� d S )Nz--allÚcheck_typesZappend_constÚallzshow all problems; default)ÚdestÚactionÚconstÚhelpz--dependenciesÚdependencieszshow dependency problemsz--duplicatesÚ duplicateszshow duplicate problemsz--obsoletedÚ obsoletedzshow obsoleted packagesz --providesÚprovideszshow problems with providesÚcheck_yum_typesÚ*)ÚnargsÚchoicesr )Úadd_argumentr ÚargparseZSUPPRESS)Úparser© r ú/usr/lib/python3.6/check.pyÚ set_argparser$ s$ zCheckCommand.set_argparserc C sx d| j j_| jjr<| jjr0| jj| jj | j_n| jj| j_| jjsPdh| j_nt| jjƒ| j_| jj j dg7 _ d S )NTr ) ZcliZdemandsZsack_activationÚoptsr r ÚsetÚbaseÚconfZdisable_excludes)Úselfr r r Ú configure; s zCheckCommand.configurec C s˜ t ƒ }| jjjƒ jƒ }| jjjddhƒ�r®d }�x||D �]r}xòt |jƒt t |j ƒt |j ƒ ƒB D ]Ì}t|ƒjdƒrtq`t |j|gd�ƒs`t|ƒjdƒrú|d krªtjj| jƒ}tjj|ƒ}|j t|ƒd� tjj|ƒ}| jjj|_|j|dd� |jƒ }|rúq`tdƒ} |j| j| jjjj|ƒ| jjjj|ƒƒƒ q`W xx|jD ]n} |j| gt| ƒj ƒ d d �}xJ|D ]B}d} |j| j| jjjj|ƒ| jjjj| ƒ| jjjj|ƒƒƒ �q^W �q8W q6W | jjjddhƒ�rN| jj!|ƒ} |j"ƒ j#| ƒj$ƒ }xl|j%ƒ D ]`\}}|j&ƒ