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: //usr/lib/yum-plugins/product-id.pyc
�
L��ec@`s�ddlmZmZmZddlZddlZddlmZddlm	Z	ddl
mZmZddl
mZddlmZdZefZejd	e�Zd
�Zdefd��YZdS(
i(tprint_functiontdivisiontabsolute_importN(t	TYPE_CORE(tlogutil(tProductManagert
RpmVersion(tchroot(tinit_dep_injections2.6s	rhsm-app.cC`s�t|d�r|jd�nyt�Wn*tk
rV}|jdt|��dSXtj�t|j	�j
�y-t|j�}|j
�|jdd�Wn)tk
r�}|jdt|��nXdS(s)
    Update product ID certificates.
    tregisterPackageNamessubscription-manageriNsInstalled products updated.(thasattrR	RtImportErrorterrortstrRtinit_logger_for_yumRtgetConftinstallroottYumProductManagert_baset
update_alltinfot	Exception(tconduittetpm((s"/usr/lib/yum-plugins/product-id.pytpostverifytrans_hook#s

RcB`s;eZd�Zd�Zd�Zd�Zed��ZRS(cC`s||_tj|�dS(N(tbaseRt__init__(tselfR((s"/usr/lib/yum-plugins/product-id.pyR?s	cC`s%|j|j�|j�|j��S(N(tupdatetget_enabledt
get_activetcheck_version_tracks_repos(R((s"/usr/lib/yum-plugins/product-id.pyRCs	cC`sg}|jjj�}x�|D]�}yM|j|j�}|j|�}|dkr[wn|j||jf�Wqt	j
jk
r�}|jj|j�qt
k
r�}tjd|�tj|�|jj|j�qXqW|jrtjd|j�n|S(sfind yum repos that are enableds(Error loading productid metadata for %s.s/Unable to load productid metadata for repos: %sN(RtrepostlistEnabledt
retrieveMDt	PRODUCTIDt	_get_certtNonetappendtidtyumtErrorstRepoMDErrortmeta_data_errorsRtlogtwarningt	exceptiontdebug(RtlsttenabledtrepotfntcertR((s"/usr/lib/yum-plugins/product-id.pyRHs&

		
cC`s�tg�}|jjj�}xz|D]r}y|jj}Wn%tk
rbtjd|j	�q%X|ddkr�tjd|�q%n|j
|�q%W|S(s[
        find the list of repo's that provide packages that are actually installed
        s"Unable to get repo for package: %sit/s9Not adding local source of RPM: %s to set of active repos(tsetRtrpmdbtreturnPackagest
yumdb_infot	from_repotAttributeErrorR-R0tnametadd(Rtactivetinstalled_packagestpkgR3((s"/usr/lib/yum-plugins/product-id.pyRcs

cC`sQtj\}}}tdd|||f�}tdd�}||krMtStS(Ntversions%s.%s.%ss3.2.28(R)t__version_info__RtTruetFalse(tmajortminortmicrotyum_versiontneeded_version((s"/usr/lib/yum-plugins/product-id.pyR s(t__name__t
__module__RRRRtstaticmethodR (((s"/usr/lib/yum-plugins/product-id.pyR>s
				(t
__future__RRRtloggingR)tyum.pluginsRtsubscription_managerRtsubscription_manager.productidRRtsubscription_manager.utilsRt"subscription_manager.injectioninitRtrequires_api_versiontplugin_typet	getLoggerRKR-RR(((s"/usr/lib/yum-plugins/product-id.pyt<module>s