/usr/lib/python3.9/site-packages/dnf/__pycache__
NameSizeModeActions
base.cpython-39.opt-1.pyc816190644editdlrm
base.cpython-39.pyc818610644editdlrm
callback.cpython-39.opt-1.pyc37330644editdlrm
callback.cpython-39.pyc37330644editdlrm
comps.cpython-39.opt-1.pyc257750644editdlrm
comps.cpython-39.pyc262880644editdlrm
const.cpython-39.opt-1.pyc14380644editdlrm
const.cpython-39.pyc14380644editdlrm
crypto.cpython-39.opt-1.pyc68910644editdlrm
crypto.cpython-39.pyc68910644editdlrm
dnssec.cpython-39.opt-1.pyc92700644editdlrm
dnssec.cpython-39.pyc92700644editdlrm
drpm.cpython-39.opt-1.pyc53590644editdlrm
drpm.cpython-39.pyc53590644editdlrm
exceptions.cpython-39.opt-1.pyc72630644editdlrm
exceptions.cpython-39.pyc72630644editdlrm
goal.cpython-39.opt-1.pyc2590644editdlrm
goal.cpython-39.pyc2590644editdlrm
history.cpython-39.opt-1.pyc2860644editdlrm
history.cpython-39.pyc2860644editdlrm
i18n.cpython-39.opt-1.pyc96450644editdlrm
i18n.cpython-39.pyc96450644editdlrm
lock.cpython-39.opt-1.pyc41820644editdlrm
lock.cpython-39.pyc41820644editdlrm
logging.cpython-39.opt-1.pyc84460644editdlrm
logging.cpython-39.pyc85100644editdlrm
match_counter.cpython-39.opt-1.pyc41380644editdlrm
match_counter.cpython-39.pyc41380644editdlrm
package.cpython-39.opt-1.pyc102570644editdlrm
package.cpython-39.pyc102570644editdlrm
persistor.cpython-39.opt-1.pyc42410644editdlrm
persistor.cpython-39.pyc42410644editdlrm
plugin.cpython-39.opt-1.pyc90640644editdlrm
plugin.cpython-39.pyc90640644editdlrm
pycomp.cpython-39.opt-1.pyc30160644editdlrm
pycomp.cpython-39.pyc30160644editdlrm
query.cpython-39.opt-1.pyc8680644editdlrm
query.cpython-39.pyc8680644editdlrm
repo.cpython-39.opt-1.pyc224290644editdlrm
repo.cpython-39.pyc224290644editdlrm
repodict.cpython-39.opt-1.pyc56340644editdlrm
repodict.cpython-39.pyc56340644editdlrm
sack.cpython-39.opt-1.pyc22990644editdlrm
sack.cpython-39.pyc22990644editdlrm
selector.cpython-39.opt-1.pyc2670644editdlrm
selector.cpython-39.pyc2670644editdlrm
subject.cpython-39.opt-1.pyc3020644editdlrm
subject.cpython-39.pyc3020644editdlrm
transaction.cpython-39.opt-1.pyc16730644editdlrm
transaction.cpython-39.pyc16730644editdlrm
transaction_sr.cpython-39.opt-1.pyc173450644editdlrm
transaction_sr.cpython-39.pyc173450644editdlrm
util.cpython-39.opt-1.pyc231260644editdlrm
util.cpython-39.pyc231810644editdlrm
__init__.cpython-39.opt-1.pyc5440644editdlrm
__init__.cpython-39.pyc5440644editdlrm
Edit: /usr/lib/python3.9/site-packages/dnf/__pycache__/plugin.cpython-39.pyc (9064B)
a jV%ã@sòddlmZddlmZddlmZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZddlZddlZddlmZe d¡ZdZGdd „d eƒZGd d „d eƒZd d „Zdd„Zdd„Zdd„Zdd„ZdS)é)Úabsolute_import)Úprint_function)Úunicode_literalsN)Ú_Údnfzdnf.plugin.dynamicc@s\eZdZdZdZdZedd„ƒZdd„Zdd „Z d d „Z d d „Z dd„Z dd„Z dd„ZdS)ÚPluginz5The base class custom plugins must derive from. #:apiz Nc s–tj ¡}|jr|jn|j‰‡fdd„|jDƒ}|D]\}tj |¡r4z|  |¡Wq4t yŽ}z$t j   tdƒt|ƒ¡‚WYd}~q4d}~00q4|S)Ncsg|]}d|ˆf‘qS)z %s/%s.conf©)Ú.0Úpath©Únamerú./usr/lib/python3.9/site-packages/dnf/plugin.pyÚ 9óz&Plugin.read_config..zParsing file failed: %s)ÚlibdnfÚconfZ ConfigParserÚ config_namer ZpluginconfpathÚosr ÚisfileÚreadÚ ExceptionrÚ exceptionsZ ConfigErrorrÚstr)ÚclsrÚparserÚfilesÚfileÚerr r Ú read_config4s  0zPlugin.read_configcCs||_||_dS©N)ÚbaseÚcli©Úselfr r!rrr Ú__init__BszPlugin.__init__cCsdSrr©r#rrr Ú pre_configGszPlugin.pre_configcCsdSrrr%rrr ÚconfigKsz Plugin.configcCsdSrrr%rrr ÚresolvedOszPlugin.resolvedcCsdSrrr%rrr ÚsackSsz Plugin.sackcCsdSrrr%rrr Úpre_transactionWszPlugin.pre_transactioncCsdSrrr%rrr Ú transaction[szPlugin.transaction)Ú__name__Ú __module__Ú __qualname__Ú__doc__r rÚ classmethodrr$r&r'r(r)r*r+rrrr r.s rc@s~eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z ddd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„ZdS)ÚPluginscCsg|_g|_dSr)Ú plugin_clsÚpluginsr%rrr r$aszPlugins.__init__cCs | ¡dSr)Ú_unloadr%rrr Ú__del__eszPlugins.__del__c Csv|jD]j}zt||ƒƒWqtjjy2‚Yqtynt ¡\}}}t  |||¡}t   d  |¡¡Yq0qdS)NÚ) r3ÚgetattrrrÚErrorrÚsysÚexc_infoÚ tracebackÚformat_exceptionÚloggerZcriticalÚjoin)r#ÚmethodÚpluginÚexc_typeÚ exc_valueÚ exc_tracebackZ except_listrrr Ú_callerhs  zPlugins._callercst|jdd…D]`}|j‰t‡fdd„|Dƒƒr0q| |¡}| d¡o\| dd¡o\| dd¡ }|r|j |¡qdS)zwChecks whether plugins are enabled or disabled in configuration files and removes disabled plugins from listNc3s|]}t ˆ|¡VqdSr©Úfnmatch)r Úpatternr rr Ú xrz)Plugins._check_enabled..ÚmainZenabled)r2r ÚanyrZ has_sectionZ has_optionZ getbooleanÚremove)r#rÚenable_pluginsZplug_clsrZdisabledrr r Ú_check_enabledss   ÿ þzPlugins._check_enabledcCsžttjvrtdƒ‚tj t¡tjt<}g|_t|j ||ƒ}t ||ƒt ƒdd…|_ |  ||¡t|j ƒdkrštdd„|j Dƒƒ}t tdƒd |¡¡dS)z)Dynamically load relevant plugin modules.zload_plugins() called twiceNrcss|] }|jVqdSrr )r r@rrr rH�rz Plugins._load..zLoaded plugins: %sú, )ÚDYNAMIC_PACKAGEr9ÚmodulesÚ RuntimeErrorrZpycompÚ ModuleTypeÚ__path__Ú_get_plugins_filesZ pluginpathÚ_import_modulesÚ_plugin_classesr2rMÚlenÚsortedr=Údebugrr>)r#rZskipsrLÚpackagerÚnamesrrr Ú_load‚s   z Plugins._loadcCs| d¡dS)Nr&©rDr%rrr Ú_run_pre_config’szPlugins._run_pre_configcCs| d¡dS)Nr'r]r%rrr Ú _run_config•szPlugins._run_configNcCs&|jD]}|||ƒ}|j |¡qdSr)r2r3Úappend)r#r r!Zp_clsr@rrr Ú _run_init˜s  zPlugins._run_initcCs| d¡dS)Nr)r]r%rrr Úrun_sack�szPlugins.run_sackcCs| d¡dS)Nr(r]r%rrr Ú run_resolved szPlugins.run_resolvedcCs| d¡dS)Nr*r]r%rrr Úrun_pre_transaction£szPlugins.run_pre_transactioncCs| d¡dS)Nr+r]r%rrr Úrun_transaction¦szPlugins.run_transactioncCs&ttjvr"t tjjd¡tjt=dS)NzPlugins were unloaded.)rOr9rPr=ÚlogrÚloggingZDDEBUGr%rrr r4©s zPlugins._unloadcCsš|js dStƒ}|jD]}||t |j¡<qt| ¡ƒ}tƒ}|jD]}| |  |j ¡¡qD|sddS|j D]}|  |j ¡qj|D]}|j  ||¡q€dS)zH Unload plugins that were removed in the `transaction`. N)Z remove_setÚdictr3ÚinspectZgetfileÚ __class__ÚsetÚkeysÚupdateÚ intersectionrZ install_setÚdifference_updaterK)r#r+r3r@Z plugin_filesZerased_plugin_filesÚpkgZ plugin_filerrr Úunload_removed_plugins®s    zPlugins.unload_removed_plugins)N)r,r-r.r$r5rDrMr\r^r_rarbrcrdrer4rqrrrr r1`s  r1cCst ¡Sr)rÚ__subclasses__rrrr rVËsrVc Cs¢|D]˜}tj |¡\}}|j |¡tj |¡\}}d|j|f}zt |¡}Wqt yš}z2t   t dƒ||¡t j tjjddd�WYd}~qd}~00qdS)Nz%s.%szFailed loading plugin "%s": %sr6T)r:)rr ÚsplitrSr`Úsplitextr,Ú importlibÚ import_modulerr=ÚerrorrrfrrgZSUBDEBUG)rZZpy_filesÚfnr ÚmoduleÚextr rrrr rUÏs rUcCs6g}t|ƒ}t|ƒ}tƒ}tƒ}|D]°}t d|¡D]œ}tj tj |¡¡\}} d} d} |D]B} t|| ƒr^| | ¡d} |D]} t|| ƒr~d} | | ¡q~d} q^| sÄ|D]} t|| ƒrª| | ¡qª| r6| |¡q6q$|  |¡}|�rt   t dƒ  d t|ƒ¡¡¡|  |¡}|�r2t   t dƒ  d t|ƒ¡¡¡|S)Nz%s/*.pyTFz=No matches found for the following enable plugin patterns: {}rNz>No matches found for the following disable plugin patterns: {})rkÚglobrr rtÚbasenameÚ_plugin_name_matches_patternÚaddr`Ú differencer=ZwarningrÚformatr>rX)ÚpathsZdisable_pluginsrLr3Zpattern_enable_foundZpattern_disable_foundÚprxÚ plugin_nameZdummyZmatchedZenable_pattern_testedZ pattern_skipZpattern_enableZenable_not_foundZdisable_not_foundrrr rTÜsH         ÿ   ÿrTcs*t|| dd¡fƒ}t‡fdd„|DƒƒS)zë Checks plugin name matches the pattern. The alternative plugin name using dashes instead of underscores is tried in case of original name is not matched. (see https://bugzilla.redhat.com/show_bug.cgi?id=1980712) rú-c3s|]}t |ˆ¡VqdSrrE)r r ©rGrr rH rz/_plugin_name_matches_pattern..)rkÚreplacerJ)rƒrGZ try_namesrr…r r}s r}cs<‡fdd„}ttˆjdƒtjf|ˆjddœƒ}|ˆ_ˆS)z5A class decorator for automatic command registration.cs|r| ˆ¡dSr)Úregister_commandr"©Ú command_classrr r$sz"register_command..__init__rr)r$r )Útyperr,rrÚaliasesZ_plugin)r‰r$Z plugin_classrrˆr r‡s ÿþr‡)Z __future__rrrrFr{rurirgÚoperatorrr9r;rZ dnf.loggingrZ dnf.pycompZdnf.utilZdnf.i18nrZ getLoggerr=rOÚobjectrr1rVrUrTr}r‡rrrr Ús2     2k %