403Webshell
Server IP : 3.96.16.70  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3.9/site-packages/dnf/cli/commands/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/dnf/cli/commands/__pycache__/check.cpython-39.opt-1.pyc
a

�!c?�@sVddlmZddlmZddlmZddlmZddlZddlZ	Gdd�dej
�ZdS)�)�absolute_import)�unicode_literals)�_)�commandsNc@s8eZdZdZdZed�Zedd��Zdd�Z	dd	�Z
d
S)�CheckCommandzSA class containing methods needed by the cli to execute the check
    command.
    )Zcheckz#check for problems in the packagedbc	Cs�|jddddtd�d�|jddddtd	�d�|jd
dddtd�d�|jd
dddtd�d�|jddddtd�d�|jdddddddggtjd�dS)Nz--all�check_typesZappend_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.9/site-packages/dnf/cli/commands/check.py�
set_argparser$s2�������zCheckCommand.set_argparsercCsxd|jj_|jjr<|jjr0|jj|jj|j_n|jj|j_|jjsPdh|j_nt|jj�|j_|jjj	dg7_	dS)NTr)
ZcliZdemandsZsack_activation�optsrr�set�base�confZdisable_excludes)�selfrrr�	configure;s
�
zCheckCommand.configurecCsjt�}|jj����}|jj�ddh��r�d}|D�]f}t|j�tt|j	�t|j
��BD]�}t|��d�rnqZt
|j|gd��sZt|��d�r�|dur�tj�|j�}tj�|�}|jt|�d�tj�|�}|jjj|_|j|dd�|��}|r�qZtd�}	|�|	�|jjj�|�|jjj�|���qZ|jD]j}
|j|
gt|
�� �d	d
�}|D]B}d}	|�|	�|jjj�|�|jjj�|
�|jjj�|����qR�q.q2|jj�ddh��r4|j�!|�}
|�"��#|
��$�}|�%�D]\\}}|�&�|d
d�D]<}td��|jjj�|d	�|jjj�|��}	|�|	��q�q�|jj�ddh��r�|D]p}|j'D]b}|j|gt|�� �d	d
�}t
|��rVtd��|jjj�|d	�|jjj�|��}	|�|	��qV�qL|jj�ddh��r2|D]Z}|j(D]L}||j|gd�v�r�td�}	|�|	�|jjj�|�|jjj�|����q�q�t)|�D]}	t*|	��q:|�rftj+�,d�t
|����dS)Nrr
Zrpmlib)r�(F)ZselectZoptionalz{} has missing requires of {}r)r�namez"{} has installed conflict "{}": {}r�z{} is a duplicate with {}rz{} is obsoleted by {}rz%{} provides {} but it cannot be foundzCheck discovered {} problem(s))-rr�sack�queryZ	installedrr�intersectionZregular_requiresZrequires_preZprereq_ignoreinst�str�
startswith�len�filter�dnfZ
rpmdb_sack�selectorZSelector�goalZGoalrZprotect_running_kernelZinstall�runr�add�format�outputZtermZboldZ	conflicts�splitZ_get_installonly_queryZ
duplicated�
differenceZ
_name_dict�items�sortZ	obsoletesr�sorted�print�
exceptions�Error)rZ
output_set�qr$ZpkgZrequirer,r-Zsolved�msgZconflictZ
conflictedZconflict_pkgZinstallonlyZdupsr"Zpkgs�dupZobsoleterZproviderrrr.Is�
&�
���
�
�
��zCheckCommand.runN)�__name__�
__module__�__qualname__�__doc__�aliasesrZsummary�staticmethodrr r.rrrrrs
r)Z
__future__rrZdnf.i18nrZdnf.clirrZdnf.exceptionsr+ZCommandrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit