관리-도구
편집 파일: repograph.cpython-39.pyc
a �����&c�����������������������@���s^���d�dl�mZ�d�dl�mZ�d�dlmZmZ�d�dlZdZG�dd��dej �Z G�dd ��d ejj�Z dS�) �����)�absolute_import)�unicode_literals)�_�loggerNzY size="20.69,25.52"; ratio="fill"; rankdir="TB"; orientation=port; node[style="filled"]; c�����������������������s ���e�Zd�ZdZ��fdd�Z���ZS�)� RepoGraph� repographc��������������������s,���t�t|���||��|d�u�rd�S�|�t��d�S��N)�superr����__init__Zregister_command�RepoGraphCommand)�self�base�cli�� __class__���9/usr/lib/python3.9/site-packages/dnf-plugins/repograph.pyr ���)���s����zRepoGraph.__init__)�__name__� __module__�__qualname__�namer ���� __classcell__r���r���r���r���r���%���s���r���c�������������������@���s<���e�Zd�ZdZed�Zdd��Zdd��Zdd��Ze d d ���Z dS�)r���)r���z repo-graphz4Output a full package dependency graph in dot formatc�����������������C���sR���|�j�j}d|_d|_|�jjrN|�jj���D�]$}|j |�jjvrD|� ���q(|����q(d�S�)NT)r����demandsZsack_activationZavailable_reposZopts�repor ���Zrepos�all�id�disable�enable)r���r���r���r���r���r���� configure4���s���� zRepoGraphCommand.configurec�����������������C���s���|���t��d�S�r���)�do_dot� DOT_HEADER)r���r���r���r����run?���s����zRepoGraphCommand.runc����������� ������C���s����d}|���|�jj�}td��td�|���|���D�]�}t||��|krPt||��}ddt||����}|d�}d}td�||||���td �|���||�D�]}td �|���q�td�|||���q0td��d�S�) Nr���zdigraph 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����headerZmaxdepsZdeps�pkg�h�s�b�reqr���r���r���r���B���s ����zRepoGraphCommand.do_dotc����������� ������C���s����i�}i�}g�}|��������}|D�]�}i�}|jD�]�}t|�}||v�r@q*|�d�rLq*||v�r^||�} n@|j|d�} | s�t�td�|��|� |��q*n | d�j } | ||<�| |j kr�d�|| <�| |v�s*| |v�r�q*nd�|| <�|���||j <�q*q|S�)Nz solvable:)ZprovideszNothing provides: '%s'r���)�query� available�requires�str� startswith�filterr����debugr����appendr���r'���) r$���r1���Zprov�skipr0���r*����xxr.���ZreqnameZproviderr���r���r���r#���Y���s8���� zRepoGraphCommand._get_depsN)r���r���r����aliasesr���Zsummaryr���r!���r����staticmethodr#���r���r���r���r���r���0���s���r���)Z __future__r���r���Zdnfpluginscorer���r���Zdnf.cliZdnfr ���ZPluginr���r���ZCommandr���r���r���r���r����<module>���s���