404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.133.124.52: ~ $
3

�gt`��@sVddlmZddlmZddlmZddlZGdd�dej�ZGdd�dej	j
�ZdS)	�)�absolute_import)�unicode_literals)�_Ncs eZdZdZ�fdd�Z�ZS)�RepoClosure�repoclosurecs,tt|�j||�|dkrdS|jt�dS)N)�superr�__init__Zregister_command�RepoClosureCommand)�self�base�cli)�	__class__��!/usr/lib/python3.6/repoclosure.pyr!szRepoClosure.__init__)�__name__�
__module__�__qualname__�namer�
__classcell__rr)r
rrsrc@s>eZdZdZed�Zdd�Zdd�Zd
dd	�Ze	d
d��Z
dS)r	rz:Display a list of unresolved dependencies for repositoriescCsd|jj}d|_d|_|jjr`xB|jjj�D]2}|j	|jjkrT|j	|jj
krT|j�q*|j�q*WdS)NT)
r�demandsZsack_activationZavailable_repos�opts�repor�repos�all�id�check�disable�enable)r
rrrrr�	configure,s
zRepoClosureCommand.configurecCs�|jjr|j|jj�}n|j�}xRt|j��D]B}tdjt|�|j��td�x||D]}tdj|��qZWq.Wt	|�dkr�t
d�}tjj
|��dS)Nzpackage: {} from {}z  unresolved deps:z    {}rz/Repoclosure ended with unresolved dependencies.)r�arches�_get_unresolved�sorted�keys�print�format�str�reponame�lenr�dnf�
exceptions�Error)r
�
unresolved�pkgZdep�msgrrr�run7szRepoClosureCommand.runNcsLi}t�}|jjr�|jjj�jdd��|jjj�jdd�}xv|jjj�D]D}�j	|jjj�j|j
d�j���|j	|jjj�j|j
d�j��}qHWn |jjj�j��|jjj�j�}|jj
�rN|jjj�jdd�}g}xT|jj
D]H}tjj|�}	|j|	j|jjdddd��}
|
�r|j	|
�}q�|j|�q�W|�rJtjjtd�dj|���|}|jj�rh|j|jjd�|dk	�r~|j|d�|jjj�r��jdd	��j�|j�xf|D]^}t�||<xL|jD]B}t|�}|jd
��s�|jd��r�q�|j |�||j |��q�W�q�Wt�fdd
�|D����fdd�|j!�D�}
dd�|
j!�D�S)NT)�empty)r&F)Z
with_nevraZ
with_providesZwith_filenameszno package matched: %sz, )�arch)Zlatest_per_archz	solvable:zrpmlib(c3s|]}�j|d�s|VqdS))ZprovidesN)�filter)�.0�x)�	availablerr�	<genexpr>�sz5RepoClosureCommand._get_unresolved.<locals>.<genexpr>cs(i|] \}}t�fdd�|D��|�qS)c3s|]}|�kr|VqdS)Nr)r2r3)�unresolved_depsrrr5�sz@RepoClosureCommand._get_unresolved.<locals>.<dictcomp>.<genexpr>)�set)r2�k�v)r6rr�
<dictcomp>�sz6RepoClosureCommand._get_unresolved.<locals>.<dictcomp>cSsi|]\}}|r||�qSrr)r2r8r9rrrr:�s)"r7rZnewestrZsackZqueryr1rZiter_enabled�unionrZlatestr4�pkglistr(ZsubjectZSubject�intersectionZget_best_query�appendr)r*r�joinrZfiltermZconfZbestZapplyZrequiresr%�
startswith�add�items)r
r0r+ZdepsZto_checkrZ	pkglist_q�errorsr,ZsubjZpkg_qZreqZreqnameZunresolved_transitionr)r4r6rr Es\ &






z"RepoClosureCommand._get_unresolvedcCs`|jdgddtd�d�|jdgdtd�d�|jd	d
dtd�d
�|jdgdtd�dd�dS)Nz--archr>rzBcheck packages of the given archs, can be specified multiple times)�default�action�dest�helpz--checkzSpecify repositories to check)rDrErGz-nz--newest�
store_truez+Check only the newest packages in the repos)rErGz--pkgz#Check closure for this package onlyr<)rDrErGrF)�add_argumentr)�parserrrr�
set_argparser�s


z RepoClosureCommand.set_argparser)r)N)rrr�aliasesrZsummaryrr.r �staticmethodrKrrrrr	(s
Qr	)Z
__future__rrZdnfpluginscorerZdnf.clir(ZPluginrrZCommandr	rrrr�<module>s


Filemanager

Name Type Size Permission Actions
builddep.cpython-36.opt-1.pyc File 7.27 KB 0644
builddep.cpython-36.pyc File 7.27 KB 0644
changelog.cpython-36.opt-1.pyc File 4.08 KB 0644
changelog.cpython-36.pyc File 4.08 KB 0644
config_manager.cpython-36.opt-1.pyc File 7.09 KB 0644
config_manager.cpython-36.pyc File 7.09 KB 0644
copr.cpython-36.opt-1.pyc File 20.2 KB 0644
copr.cpython-36.pyc File 20.2 KB 0644
debug.cpython-36.opt-1.pyc File 10.56 KB 0644
debug.cpython-36.pyc File 10.56 KB 0644
debuginfo-install.cpython-36.opt-1.pyc File 5.93 KB 0644
debuginfo-install.cpython-36.pyc File 5.93 KB 0644
download.cpython-36.opt-1.pyc File 9.29 KB 0644
download.cpython-36.pyc File 9.29 KB 0644
generate_completion_cache.cpython-36.opt-1.pyc File 3 KB 0644
generate_completion_cache.cpython-36.pyc File 3 KB 0644
groups_manager.cpython-36.opt-1.pyc File 8.45 KB 0644
groups_manager.cpython-36.pyc File 8.45 KB 0644
needs_restarting.cpython-36.opt-1.pyc File 9.88 KB 0644
needs_restarting.cpython-36.pyc File 9.88 KB 0644
repoclosure.cpython-36.opt-1.pyc File 4.31 KB 0644
repoclosure.cpython-36.pyc File 4.31 KB 0644
repodiff.cpython-36.opt-1.pyc File 7.55 KB 0644
repodiff.cpython-36.pyc File 7.55 KB 0644
repograph.cpython-36.opt-1.pyc File 2.72 KB 0644
repograph.cpython-36.pyc File 2.72 KB 0644
repomanage.cpython-36.opt-1.pyc File 6.37 KB 0644
repomanage.cpython-36.pyc File 6.37 KB 0644
reposync.cpython-36.opt-1.pyc File 10.19 KB 0644
reposync.cpython-36.pyc File 10.19 KB 0644
spacewalk.cpython-36.opt-1.pyc File 9.79 KB 0644
spacewalk.cpython-36.pyc File 9.79 KB 0644
system_upgrade.cpython-36.opt-1.pyc File 22.48 KB 0644
system_upgrade.cpython-36.pyc File 22.48 KB 0644
universal_hooks.cpython-36.opt-1.pyc File 5.86 KB 0644
universal_hooks.cpython-36.pyc File 5.86 KB 0644