Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.131.37.236
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : repograph.cpython-36.pyc
3

�gt`��@s^ddlmZddlmZddlmZmZddlZdZGdd�dej	�Z
Gdd	�d	ejj�Z
dS)
�)�absolute_import)�unicode_literals)�_�loggerNzY
size="20.69,25.52";
ratio="fill";
rankdir="TB";
orientation=port;
node[style="filled"];
cs eZdZdZ�fdd�Z�ZS)�	RepoGraph�	repographcs,tt|�j||�|dkrdS|jt�dS)N)�superr�__init__Zregister_command�RepoGraphCommand)�self�base�cli)�	__class__��/usr/lib/python3.6/repograph.pyr	)szRepoGraph.__init__)�__name__�
__module__�__qualname__�namer	�
__classcell__rr)rrr%src@s<eZdZd
Zed�Zdd�Zdd�Zdd	�Ze	d
d��Z
dS)r
r�
repo-graphz4Output a full package dependency graph in dot formatcCsV|jj}d|_d|_|jjrRx4|jjj�D]$}|j	|jjkrF|j
�q*|j�q*WdS)NT)r
�demandsZsack_activationZavailable_reposZopts�reporZrepos�all�id�disable�enable)rrrrrr�	configure4s
zRepoGraphCommand.configurecCs|jt�dS)N)�do_dot�
DOT_HEADER)rrrr�run?szRepoGraphCommand.runc	Cs�d}|j|jj�}td�tdj|��x�|j�D]�}t||�|krRt||�}ddt||�}|d}d}td	j||||��td
j|��x||D]}tdj|��q�Wtdj|||��q2Wtd
�dS)Nrzdigraph packages {z{}g�?g333333�?�g�������?g�?z""{}" [color="{:.12g} {:.12g} {}"];z
"{}" -> {{z"{}"z!}} [color="{:.12g} {:.12g} {}"];
�}g��s���?)�	_get_depsr�sack�print�format�keys�len)	r�headerZmaxdepsZdeps�pkg�h�s�b�reqrrrrBs zRepoGraphCommand.do_dotc
Cs�i}i}g}|j�j�}x�|D]�}i}x�|jD]�}t|�}||krDq.|jd�rPq.||krb||}	n@|j|d�}	|	s�tjtd�|�|j	|�q.n
|	dj
}	|	||<|	|j
kr�d||	<|	|ks.|	|kr�q.nd||	<|j�||j
<q.WqW|S)Nz	solvable:)ZprovideszNothing provides: '%s'r)Zquery�	available�requires�str�
startswith�filterr�debugr�appendrr')
r$r0Zprov�skipr/r*Zxxr.ZreqnameZproviderrrrr#Ys8





zRepoGraphCommand._get_depsN)rr)rrr�aliasesrZsummaryrr r�staticmethodr#rrrrr
0sr
)Z
__future__rrZdnfpluginscorerrZdnf.cliZdnfrZPluginrr
ZCommandr
rrrr�<module>s
© 2025 GrazzMean