MOON
Server: Apache
System: Linux s5.yayogua.com.py 6.12.0-124.55.3.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:54:02 EDT 2026 x86_64
User: w3com (1005)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //usr/lib/python3.12/site-packages/dnf-plugins/__pycache__/repograph.cpython-312.pyc
�

?�(f����ddlmZddlmZddlmZmZddlZdZGd�dej�Z
Gd�d	ejj�Z
y)
�)�absolute_import)�unicode_literals)�_�loggerNzY
size="20.69,25.52";
ratio="fill";
rankdir="TB";
orientation=port;
node[style="filled"];
c�"��eZdZdZ�fd�Z�xZS)�	RepoGraph�	repographc�^��tt|�||�|�y|jt�y�N)�superr�__init__�register_command�RepoGraphCommand)�self�base�cli�	__class__s   ��:/usr/lib/python3.12/site-packages/dnf-plugins/repograph.pyr
zRepoGraph.__init__)s+���
�i��'��c�2��;�����-�.�)�__name__�
__module__�__qualname__�namer
�
__classcell__)rs@rrr%s����D�/�/rrc�B�eZdZdZed�Zd�Zd�Zd�Ze	d��Z
y)r)r	z
repo-graphz4Output a full package dependency graph in dot formatc�R�|jj}d|_d|_|jj
rm|jjj�D]E}|j|jj
vr|j��6|j��Gyy)NT)r�demands�sack_activation�available_repos�opts�repor�repos�all�id�disable�enable)rrr!s   r�	configurezRepoGraphCommand.configure4sr���(�(�"�"��"&���"&����9�9�>�>��	�	���+�+�-���7�7�$�)�)�.�.�0��L�L�N��K�K�M�	.�rc�.�|jt�yr)�do_dot�
DOT_HEADER)rs r�runzRepoGraphCommand.run?s�����J�rc	�>�d}|j|jj�}td�tdj	|��|j�D]�}t
||�|kDrt
||�}ddt
||�zz}|dz}d}tdj	||||��td	j	|��||D]}td
j	|���tdj	|||����td�y)
Nrzdigraph packages {z{}g�?g��s���?g�������?g�?z""{}" [color="{:.12g} {:.12g} {}"];z
"{}" -> {{z"{}"z!}} [color="{:.12g} {:.12g} {}"];
�})�	_get_depsr�sack�print�format�keys�len)	r�header�maxdeps�deps�pkg�h�s�b�reqs	         rr)zRepoGraphCommand.do_dotBs������~�~�d�i�i�n�n�-��
�"�#�
�d�k�k�&�!�"��9�9�;�C��4��9�~��'��d�3�i�.���x�#�d�3�i�.�0�1�A��C��A��A��6�=�=�c�1�a��K�L��,�%�%�c�*�+��C�y���f�m�m�C�(�)�!��6�=�=�a��A�F�G��	�c�
rc�
�i}i}g}|j�j�}|D]�}i}|jD]�}t|�}||vr�|j	d�r�%||vr||}	nY|j|��}	|	s1t
jtd�|�|j|��t|	dj}	|	||<|	|jk(rd||	<|	|vs|	|vr��d||	<|j�||j<����|S)Nz	solvable:)�provideszNothing provides: '%s'r)�query�	available�requires�str�
startswith�filterr�debugr�appendrr2)
r/r@�prov�skipr?r7�xxr;�reqname�providers
          rr.zRepoGraphCommand._get_depsYs���������J�J�L�*�*�,�	��C��B��|�|���c�(���d�?���%�%�k�2���d�?�#�G�}�H�(�/�/��/�A�H�#����Q�'?�%@�'�J����G�,� �#+�A�;�#3�#3��$,�D��M��s�x�x�'�#'�B�x�L��r�>�X��%5��#'�B�x�L�%'�W�W�Y�����"�1$��6�rN)rrr�aliasesr�summaryr'r+r)�staticmethodr.�rrrr0s5��*�G��F�G�G�	"� ��.�!��!rr)�
__future__rr�dnfpluginscorerr�dnf.cli�dnfr*�Pluginrr�CommandrrNrr�<module>rUs@��,'�'�$���
�/��
�
�/�K�s�w�w���Kr