403Webshell
Server IP : 88.99.149.37  /  Your IP : 216.73.216.141
Web Server : nginx/1.31.2
System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64
User : muralimurth ( 1015)
PHP Version : 8.4.23
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/1/cwd/lib/python3.12/site-packages/dnf/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/1/cwd/lib/python3.12/site-packages/dnf/__pycache__/plugin.cpython-312.opt-1.pyc
�

�(fy%���ddlmZddlmZddlmZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlZddlZddlZddlZddlmZej*d�ZdZGd�d	e�ZGd
�de�Zd�Zd
�Zd�Zd�Zd�Zy)�)�absolute_import)�print_function)�unicode_literalsN)�_�dnfzdnf.plugin.dynamicc�R�eZdZdZdZdZed��Zd�Zd�Z	d�Z
d�Zd	�Zd
�Z
d�Zy)�Pluginz5The base class custom plugins must derive from. #:apiz	<invalid>Nc���tjj�}|jr|jn|j}|j
D�cgc]
}|�d|�d���}}|D]4}tjj|�s�#	|j|��6|Scc}w#t$r9}tjjtd�t|�z��d}~wwxYw)N�/z.confzParsing file failed: %s)�libdnf�conf�ConfigParser�config_name�name�pluginconfpath�os�path�isfile�read�	Exceptionr�
exceptions�ConfigErrorr�str)�clsr
�parserrr�files�file�es        �//usr/lib/python3.12/site-packages/dnf/plugin.py�read_configzPlugin.read_config5s������)�)�+��"%�/�/�s���s�x�x��9=�9L�9L�M�9L���t�,�9L��M��D��w�w�~�~�d�#�\��K�K��%���
��N��
!�\��.�.�4�4�Q�7P�5Q�TW�XY�TZ�5Z�[�[��\�s�B�B"�"	C$�+4C�C$c� �||_||_y�N)�base�cli)�selfr#r$s   r�__init__zPlugin.__init__Cs����	����c��yr"��r%s r�
pre_configzPlugin.pre_configH���r'c��yr"r)r*s r�configz
Plugin.configLr,r'c��yr"r)r*s r�resolvedzPlugin.resolvedPr,r'c��yr"r)r*s r�sackzPlugin.sackTr,r'c��yr"r)r*s r�pre_transactionzPlugin.pre_transactionXr,r'c��yr"r)r*s r�transactionzPlugin.transaction\r,r')�__name__�
__module__�__qualname__�__doc__rr�classmethodr r&r+r.r0r2r4r6r)r'rr	r	/sD��?��D��K������

�
�
�
�
�
r'r	c�b�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	dd	�Z
d
�Zd�Zd�Z
d
�Zd�Zd�Zy)�Pluginsc� �g|_g|_yr")�
plugin_cls�pluginsr*s rr&zPlugins.__init__bs�������r'c�$�|j�yr")�_unloadr*s r�__del__zPlugins.__del__fs�����r'c�H�|jD]}	t||���y#tjj$r�t
$rVt
j�\}}}tj|||�}tjdj|��Y��wxYw)N�)
r@�getattrrr�Errorr�sys�exc_info�	traceback�format_exception�logger�critical�join)r%�method�plugin�exc_type�	exc_value�
exc_traceback�except_lists       r�_callerzPlugins._calleris����l�l�F�
6�'����'�)�#���>�>�'�'�
���
6�58�\�\�^�2��)�]�'�8�8��9�m�\��������� 4�5�
6�s�%�A9B!� B!c�B��|jddD]�}|j�t�fd�|D��r�$|j|�}|j	d�xr'|jdd�xr|j
dd�}|s�r|jj|���y)zwChecks whether plugins are enabled or disabled in configuration files
           and removes disabled plugins from listNc3�J�K�|]}tj�|����y�wr"��fnmatch)�.0�patternrs  �r�	<genexpr>z)Plugins._check_enabled.<locals>.<genexpr>ys�����P��g�7�?�?�4��1���� #�main�enabled)r?r�anyr �has_section�
has_option�
getboolean�remove)r%r
�enable_plugins�plug_clsr�disabledrs      @r�_check_enabledzPlugins._check_enabledts��������*�H��=�=�D��P��P�P���)�)�$�/�F��*�*�6�2�E�"�-�-�f�i�@�E� &� 1� 1�&�)� D�D�
�����&�&�x�0�+r'c��ttjvrtd��tj
j
t�xtjt<}g|_t|j||�}t||�t�dd|_|j||�t|j�dkDrKtd�|jD��}t j#t%d�dj'|��yy)z)Dynamically load relevant plugin modules.zload_plugins() called twiceNrc3�4K�|]}|j���y�wr")r)rZrPs  rr\z Plugins._load.<locals>.<genexpr>�s����E�_�6�6�;�;�_�s�zLoaded plugins: %s�, )�DYNAMIC_PACKAGErH�modules�RuntimeErrorr�pycomp�
ModuleType�__path__�_get_plugins_files�
pluginpath�_import_modules�_plugin_classesr?rh�len�sortedrL�debugrrN)r%r
�skipsre�packager�namess       r�_loadz
Plugins._load�s����c�k�k�)��<�=�=�14���1F�1F��1W�W����O�$�w����"�4�?�?�E�>�J�����'�)�+�A�.������D�.�1��t����!�#��E�T�_�_�E�E�E��L�L��/�0�$�)�)�E�2B�C�$r'c�&�|jd�y)Nr+�rUr*s r�_run_pre_configzPlugins._run_pre_config�s�����\�"r'c�&�|jd�y)Nr.r~r*s r�_run_configzPlugins._run_config�s�����X�r'Nc�n�|jD]&}|||�}|jj|��(yr")r?r@�append)r%r#r$�p_clsrPs     r�	_run_initzPlugins._run_init�s.���_�_�E��4��%�F��L�L����'�%r'c�&�|jd�y)Nr2r~r*s r�run_sackzPlugins.run_sack�s�����V�r'c�&�|jd�y)Nr0r~r*s r�run_resolvedzPlugins.run_resolved�s�����Z� r'c�&�|jd�y)Nr4r~r*s r�run_pre_transactionzPlugins.run_pre_transaction�s�����&�'r'c�&�|jd�y)Nr6r~r*s r�run_transactionzPlugins.run_transaction�s�����]�#r'c��ttjvrDtj	t
jjd�tjt=yy)NzPlugins were unloaded.)rlrHrmrL�logr�logging�DDEBUGr*s rrBzPlugins._unload�s8���c�k�k�)��J�J�s�{�{�)�)�+C�D����O�,�*r'c��|jsyt�}|jD]$}||tj|j
�<�&t
|j��}t
�}|jD],}|j|j|j���.|sy|jD].}|j|jtj��0|D] }|jj!||��"y)zH
        Unload plugins that were removed in the `transaction`.
        N)�
remove_set�dictr@�inspect�getfile�	__class__�set�keys�update�intersectionr�install_set�difference_update�_header�rpm�RPMTAG_FILENAMESrd)r%r6r@rP�plugin_files�erased_plugin_files�pkg�plugin_files        r�unload_removed_pluginszPlugins.unload_removed_plugins�s����%�%���&���l�l�F�9?�G�G�O�O�F�$4�$4�5�6�#��7�<�<�>�*��!�e���)�)�C��&�&�|�'@�'@����'K�L�*�"���*�*�C��1�1�#�+�+�c�>R�>R�2S�T�+�/�K��L�L����� 4�5�/r'r")r7r8r9r&rCrUrhr|rr�r�r�r�r�r�rBr�r)r'rr=r=asI����	6�
1�D� #��(�
�!�(�$�-�
6r'r=c�*�tj�Sr")r	�__subclasses__r)r'rruru�s��� � �"�"r'c���|D]�}tjj|�\}}|jj	|�tjj|�\}}|j�d|��}	tj|�}��y#t$rZ}tjtd�||�tjtjj dd��Yd}~��d}~wwxYw)N�.zFailed loading plugin "%s": %srET)rI)rr�splitrqr��splitextr7�	importlib�
import_modulerrL�errorrr�rr��SUBDEBUG)rz�py_files�fnr�module�extrrs        rrtrt�s������w�w�}�}�R�(���f�������%����(�(��0�
���!�*�*�F�3��	@��,�,�T�2�F�
���	@��L�L��;�<�f�a�H��J�J�s�{�{�+�+�R�$�J�?�?��	@�s�7B�	C2�AC-�-C2c	��g}t|�}t|�}t�}t�}|D]�}tjd|z�D]�}tjj	tjj|��\}}	d}
d}|D]K}t
||�s�|j|�d}
|D]"}
t
||
�s�d}
|j|
��$d}�M|s%|D] }
t
||
�s�|j|
��"|
s��|j|�����|j|�}|rEtjtd�jdjt|����|j|�}|rEtjtd�jdjt|����|S)Nz%s/*.pyTFz=No matches found for the following enable plugin patterns: {}rkz>No matches found for the following disable plugin patterns: {})r��globrrr��basename�_plugin_name_matches_pattern�addr��
differencerL�warningr�formatrNrw)�paths�disable_pluginsrer@�pattern_enable_found�pattern_disable_found�pr��plugin_name�dummy�matched�enable_pattern_tested�pattern_skip�pattern_enable�enable_not_found�disable_not_founds                rrrrr�s����G��/�*�O���(�N��5���E��
���)�)�I��M�*�B�#%�7�7�#3�#3�B�G�G�4D�4D�R�4H�#I� �[�%��G�$)�!� /��/��\�J�)�-�-�l�;�#�G�*8��7��^�T�&*�G�0�4�4�^�D�+9�-1�)�!0�)�&4�N�3�K��P�,�0�0��@�'5�����r�"�%+��(&�0�0�1E�F������q�X�Y�`�`��I�I�f�-�.�/�1�	2�'�2�2�3H�I������q�Y�Z�a�a��I�I�f�.�/�0�2�	3��Nr'c�f��t||jdd�f�}t�fd�|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�-c3�J�K�|]}tj|�����y�wr"rX)rZrr[s  �rr\z/_plugin_name_matches_pattern.<locals>.<genexpr>
s�����D�)�$�w���t�W�-�)�r])r��replacer`)r�r[�	try_namess ` rr�r�s2����[�+�"5�"5�c�3�"?�@�A�I��D�)�D�D�Dr'c����fd�}tt�jdz�tjf|�j
dd��}|�_�S)z5A class decorator for automatic command registration.c�.��|r|j��yyr")�register_command)r%r#r$�
command_classs   �rr&z"register_command.<locals>.__init__s����� � ��/�r'r	r)r&r)�typerr7rr	�aliases�_plugin)r�r&�plugin_classs`  rr�r�sU���0���M�2�2�X�=�>����
�%-�!.�!6�!6�q�!9�;�<�L�)�M���r') �
__future__rrrrYr�r�r�r��operatorrr�rHrJr�dnf.loggingr�
dnf.pycomp�dnf.util�dnf.i18nr�	getLoggerrLrl�objectr	r=rurtrrr�r�r)r'r�<module>r�s���*'�%�'�������	�
�
��
�����	��	�	�5�	!��&��/
�V�/
�dh6�f�h6�V#�
@�"�JE�r'

Youez - 2016 - github.com/yon3zu
LinuXploit