HEX
Server: Apache
System: Linux linweb06.linvh1.fasthosts.co.uk 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: user_1036302171 (1036307171)
PHP: 8.2.30
Disabled: shell_exec,exec,system,popen,set_time_limit
Upload Files
File: //lib/yum-plugins/search-disabled-repos.pyc
�
L��ec@`s�ddlmZmZmZddlZddlZddlmZddlm	Z	m
Z
ddlmZddl
mZdZe	e
fZdZdZeagad
�Zd�Zd�Zd�Zd�Zd�ZdS(i(tprint_functiontdivisiontabsolute_importN(tapi(t	TYPE_COREtTYPE_INTERACTIVE(tTS_INSTALL_STATES(tErrorss2.7s0/etc/yum/pluginconf.d/search-disabled-repos.confs*debug-rpmss*source-rpmss
*beta-rpmss	*htb-rpmsc`sp|js
dS|j�}|jdddt��t�fd�t|jj��D��}|sfdS|jdddt	�}|r�t
|�dSt|�rl|jt
jd�t	atd�|j�D��ax�|D]|}|j�y1|jd|j�|jt
jd	|j�Wq�tjk
rU|j�|jt
jd
|j�q�Xq�Wt	|j�_ndS(Ntmaint
ignored_repostdefaultc3`s.|]$}|jrt|��r|VqdS(N(tenabledtis_repo_important(t.0trepo(R	(s-/usr/lib/yum-plugins/search-disabled-repos.pys	<genexpr>.stnotify_onlysLDepsolving failed due to missing dependencies, temporarily enabling repos...cs`s|]}|jVqdS(N(tid(R
R((s-/usr/lib/yum-plugins/search-disabled-repos.pys	<genexpr>=stwhichsRepo temporarily enabled: %ss%Failed to temporarily enable repo: %s(tmissing_requirestgetRepostconfListtDEFAULT_IGNORED_REPOStsettlisttrepostvaluestconfBooltTruetsuggest_enablingtprompt_temporarily_enable_repostinfotloggingtDEBUGt	attemptedtlistEnabledtold_enabled_repostenabletpopulateSackRRt	RepoErrortdisablet	getTsInfotchanged(tconduittrepo_storagetdisabled_reposRR((R	s-/usr/lib/yum-plugins/search-disabled-repos.pytpostresolve_hook(s0	+



"cC`s�ts
dStd�|j�jdt�D��}|t}t||�r�xu|D]j}ytj|�}Wnt	k
r�d}nX|r�|j
tjd|�qR|j
tjd|�qRWndS(Ncs`s|]}|jVqdS(N(trepoid(R
tp((s-/usr/lib/yum-plugins/search-disabled-repos.pys	<genexpr>Mst
output_statesisRepo permanently enabled: %ss%Failed to permanently enable repo: %s(
R!RR(tgetMembersWithStateRR#tprompt_permanently_enable_reposRtenable_yum_repositoriest	ExceptionRRR (R*t
used_reposthelpful_new_reposRR((s-/usr/lib/yum-plugins/search-disabled-repos.pytpostverifytrans_hookIs(



c`s.�jdkrtSt�fd�|D��S(Ns/etc/yum.repos.d/redhat.repoc3`s$|]}tj�j|�VqdS(N(tfnmatchR(R
tpattern(R(s-/usr/lib/yum-plugins/search-disabled-repos.pys	<genexpr>as(trepofiletFalsetany(RR	((Rs-/usr/lib/yum-plugins/search-disabled-repos.pyR]scC`s(|j�dt}|jd|�dS(NsP
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in %s
**********************************************************************
i(tpretty_output_restringtPLUGIN_CONF_PATHR(R*tmsg((s-/usr/lib/yum-plugins/search-disabled-repos.pyRds	cC`s)|j�d}d}|j|d|�S(Ns�
**********************************************************************
Dependency resolving failed due to missing dependencies.
Some repositories on your system are disabled, but yum can enable them
and search for missing dependencies. This will require downloading
metadata for disabled repositories and may take some time and traffic.
**********************************************************************
s.Enable all repositories and try again? [y/N]: tprompt(R=tpromptYN(R*R?R@((s-/usr/lib/yum-plugins/search-disabled-repos.pyRms	cC`s<djd�|D��}d|}d}|j|d|�S(Ns
cs`s|]}|VqdS(N((R
R((s-/usr/lib/yum-plugins/search-disabled-repos.pys	<genexpr>yss�*******************************************************************
Dependency resolving was successful thanks to enabling these repositories:
%s
*******************************************************************
s@Would you like to permanently enable these repositories? [y/N]: R@(tjoinRA(R*Rt	repos_strR?R@((s-/usr/lib/yum-plugins/search-disabled-repos.pyR2xs
(s*debug-rpmss*source-rpmss
*beta-rpmss	*htb-rpms(t
__future__RRRRR8tsubscription_managerRtyum.pluginsRRt
yum.constantsRtyumRtrequires_api_versiontplugin_typeR>RR;R!R#R-R7RRRR2(((s-/usr/lib/yum-plugins/search-disabled-repos.pyt<module>s$	!