Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 šgt`›ã@sVddlmZddlmZddlmZddlZGdd„dejƒZGdd„dej j ƒZ dS) é)Ú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ƒ}t j 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ú �sz5RepoClosureCommand._get_unresolved..cs(i|] \}}t‡fdd„|Dƒƒ|“qS)c3s|]}|ˆkr|VqdS)Nr)r2r3)Úunresolved_depsrrr5’sz@RepoClosureCommand._get_unresolved...)Úset)r2ÚkÚv)r6rrú ’sz6RepoClosureCommand._get_unresolved..cSsi|]\}}|r||“qSrr)r2r8r9rrrr:”s)"r7rZnewestr ZsackZqueryr1rZ 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 d td ƒ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Ús