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 :  /lib/python3.12/site-packages/dnf/cli/commands/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.12/site-packages/dnf/cli/commands/__pycache__/clean.cpython-312.pyc
�

�(fn���ddlmZddlmZddlmZddlmZmZddlm	Z	ddlZ
ddlZ
ddlZ
ddl
Z
ddlZ
ddlZddlZddlZddlZej&d�Zgd�d	gd
gdggd�d
�Zd�Zd�Zd�Zd�ZGd�dej4�Zy)�)�absolute_import)�unicode_literals)�commands)�_�P_)�miscN�dnf)�metadata�dbcache�expire-cache�packagesrr)r
r
r)r
r
rr�allc#�K�tj|�D]n\}}}tjj||�}|D]C}tjj	||�}tjj|����E�py�w)z:Traverse dirpath recursively and yield relative filenames.N)�os�walk�path�relpath�join�normpath)�dirpath�root�dirs�files�base�frs       �;/usr/lib/python3.12/site-packages/dnf/cli/commands/clean.py�_treer1sg�����W�W�W�-���d�E��w�w���t�W�-���A��7�7�<�<��a�(�D��'�'�"�"�4�(�(��.�s�BB
c����fd�|D�S)z5Yield those filenames that match any of the patterns.c3�^�K�|]$}�D]}tj||�s�|����&y�w�N��re�match)�.0r�p�patternss   �r�	<genexpr>z_filter.<locals>.<genexpr><s&�����A�u�!�h��"�(�(�1�a�.�A�h�A�u�s� -�	-�)rr&s `r�_filterr):s���A�u�A�A�c��d}|D]t}tjj||�}tj	t
jjtd�|�tj|�|dz
}�v|S)z(Remove the given filenames from dirpath.rzRemoving file %s�)rrr�logger�logr	�logging�DDEBUGrr�unlink_f)rr�countrrs     r�_cleanr3?sa��
�E�
���w�w�|�|�G�Q�'���
�
�3�;�;�%�%�q�);�'<�d�C��
�
�d��
��
��	�
�Lr*c�x��tjjd��fd�|D�}td�|D��S)z:Return the repo IDs that have some cached metadata around.r
c3�J�K�|]}tj�|����y�wr r!)r$r�metapats  �rr'z _cached_repos.<locals>.<genexpr>Ms�����3�U��r�x�x���#�U�s� #c3�DK�|]}|s�|jd����y�w)�repoidN)�group)r$�ms  rr'z _cached_repos.<locals>.<genexpr>Ns����7�'�Q�Q�q�w�w�x� �'�s� � )r	�repo�CACHE_FILES�set)r�matchesr6s  @r�
_cached_reposr?Js2����h�h�"�"�:�.�G�3�U�3�G��7�'�7�7�7r*c�:�eZdZdZdZed�Zed��Zd�Z	y)�CleanCommandzSA class containing methods needed by the cli to execute the
    clean command.
    )�cleanzremove cached datac�d�|jddtj�td���y)N�type�+zMetadata type to clean)�nargs�choices�help)�add_argument�_CACHE_TYPES�keysr)�parsers r�
set_argparserzCleanCommand.set_argparserYs.�����F�#�#/�#4�#4�#6� !�":� ;�	�	=r*c��|jjj}tjj|d�}tjj
|d�}tjj|jjjd�}		|5|5|5td�|jjD��}tt|��}tjt!ddj#|�z��d|vrit%|�}|jj&j(j+|�|j-d�tj/t!d��|D�cgc]}tj0j2|��!}	}t5|t7||	��}
tj/t9dd|
�|
z�	ddd�ddd�ddd�ycc}w#1swYnxYwddd�n#1swYnxYwddd�n#1swYnxYwn�#tj:j<$ro}|jjj>sCt!d	�|j@z}tj/|�tCjDd
�n|�Yd}~nd}~wwxYw��+)NTc3�<K�|]}t|D]}|����y�wr )rJ)r$�c�ts   rr'z#CleanCommand.run.<locals>.<genexpr>gs����S�>�a�<�PQ�?�a��?��>�s�zCleaning data: � rzCache was expiredz%d file removedz%d files removedz*Waiting for process with pid %d to finish.�)#r�conf�cachedirr	�lock�build_metadata_lock�build_download_lock�build_rpmdb_lock�
persistdirr=�optsrD�listrr-�debugrrr?�_repo_persistor�expired_to_add�update�remove�infor;r<r3r)r�
exceptions�	LockError�exit_on_lock�pid�time�sleep)
�selfrU�md_lock�
download_lock�
rpmdb_lock�typesr�expiredrQr&r2�e�msgs
             r�runzCleanCommand.run_s����9�9�>�>�*�*���(�(�.�.�x��>�����4�4�X�t�D�
��X�X�.�.�t�y�y�~�~�/H�/H�$�O�
��
��m�Z��S�4�9�9�>�>�S�S�E� ��x��1�E��L�L��#4�s�x�x���#F�!G�H�%��.�"/��"6���	�	�1�1�@�@�G�G��P����^�4����A�&9�$:�;�AF�G��A���� 4� 4�Q� 7��H�G�"�8�W�U�H�-E�F�E��K�K��#4�6H�%� P�SX� X�Y��.8�m�W�W�� H�.8�Z��m�m�m��W�W�W���>�>�+�+�
��y�y�~�~�2�2��H�I�Q�U�U�S�C��K�K��$��J�J�q�M��G�"��	
��#s��!H:�#H-�&H�)CH�$G>
�)<H�%H�-H-�5H:�>H�H�H�	H-�H!	�H-�$	H:�-H6�2H:�:K�A%K�KN)
�__name__�
__module__�__qualname__�__doc__�aliasesr�summary�staticmethodrMrqr(r*rrArAQs0����G��$�%�G��=��=�
r*rA)�
__future__rr�dnf.clir�dnf.i18nrr�dnf.yumrr	�dnf.exceptions�dnf.lock�dnf.logging�dnf.repor/rr"rg�	getLoggerr-rJrr)r3r?�CommandrAr(r*r�<module>r�s���*'�'����������	�	��	��	�	�5�	!��8����{�#�$�.���)�B�
�8�*�8�#�#�*r*

Youez - 2016 - github.com/yon3zu
LinuXploit