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__/upgrade.cpython-312.pyc
�

�(f���ddlmZddlmZddlZddlZddlZddlZddlm	Z	ddl
mZddlm
Z
ejd�ZGd�d	e	j �Zy)
�)�absolute_import)�unicode_literalsN)�commands)�OptionParser)�_�dnfc�X�eZdZdZdZed�Zed��Zd�Z	d�Z
d�Zd�Zd	�Z
d
�Zy)�UpgradeCommandzTA class containing methods needed by the cli to execute the
    update command.
    )�upgrade�updatez
upgrade-toz	update-to�localupdate�upz,upgrade a package or packages on your systemc	�p�|jddtd�tjtd���y)N�packages�*zPackage to upgrade�PACKAGE)�nargs�help�action�metavar)�add_argumentrr�ParseSpecGroupFileCallback)�parsers �=/usr/lib/python3.12/site-packages/dnf/cli/commands/upgrade.py�
set_argparserzUpgradeCommand.set_argparser+s1�����J�c��:N�8O�#/�#J�#J�$%�i�L�	�	2�c�
�|jj}d|_d|_d|_d|_tjj|jj�r*|jjxjdgz
c_
tj|j|j�|jj stj"|j�d|_d|_d|_y)z�Verify that conditions are met so that this command can run.

        These include that there are enabled repositories with gpg
        keys, and that this command is being run by the root user.
        T�	filelistsN)�cli�demands�sack_activation�available_repos�	resolving�	root_userr�util�_is_file_pattern_present�opts�	pkg_specs�base�conf�optional_metadata_typesr�_checkGPGKey�	filenames�_checkEnabledRepo�upgrade_minimal�all_security�skipped_grp_specs)�selfr s  r�	configurezUpgradeCommand.configure1s����(�(�"�"��"&���"&��� ��� ����8�8�,�,�T�Y�Y�-@�-@�A��I�I�N�N�2�2�{�m�C�2����d�i�i����2��y�y�"�"��&�&�t�y�y�1�#��� ���!%��rc�2�|jrdnd}|jj|j||j��|jj
s,|jjs|jjrQd}||j�z}||j�z}||j�z}||j�z}|ry|jj�ytjj!t#d���)N�eq�gte)�cmp_type�allFzNo packages marked for upgrade.)r/r� _populate_update_security_filterr'r0r-r(�	grp_specs�_update_modules�
_update_files�_update_packages�_update_groupsr)�upgrade_allr�
exceptions�Errorr)r2r7�results   r�runzUpgradeCommand.runGs����/�/�4�U�����1�1�$�)�)�h�6:�6G�6G�	2�	I��9�9���$�)�)�"5�"5����9L�9L��F��d�*�*�,�,�F��d�(�(�*�*�F��d�+�+�-�-�F��d�)�)�+�+�F����I�I�!�!�#���n�n�"�"�1�%F�#G�H�Hrc��t|jj�}tjj
r^tjjj|j�}|j|jj�|_
n|jj|_
t|j�|k7S)N)�lenr'r:rr)�WITH_MODULES�module�module_base�
ModuleBaserr1)r2�group_specs_numrHs   rr;zUpgradeCommand._update_modules[s����d�i�i�1�1�2���8�8� � ��*�*�0�0�;�;�D�I�I�F�K�%0�%8�%8����9L�9L�%M�D�"�%)�Y�Y�%8�%8�D�"��4�)�)�*�o�=�=rc��d}|jjrs|jj|jjd|jjj
��D] }	|jj
|�d}�"|S#tjj$r`}tjtd�|jjjj|j��Yd}~��d}~wwxYw)NF)�strict�progressT�No match for argument: %s)r'r-r)�add_remote_rpms�outputrM�package_upgraderr@�MarkingError�logger�infor�term�bold�location)r2�success�pkg�es    rr<zUpgradeCommand._update_fileses������9�9����y�y�0�0����1D�1D�U�:>�)�)�:J�:J�:S�:S�1�U��J��I�I�-�-�c�2�"�G�	U�����~�~�2�2�J��K�K��"=� >� $�	�	� 0� 0� 5� 5� :� :�3�<�<� H�J�J��J�s�-B�D�+AD�Dc�h�d}|jjD] }	|jj|�d}�"|S#tj
j$rV}tjtd�|jjjj|��Yd}~��d}~wwxYw)NFTrN)
r'r(r)rrr@rRrSrTrrPrUrV)r2rX�pkg_specrZs    rr=zUpgradeCommand._update_packagesrs������	�	�+�+�H�
B��	�	�!�!�(�+���,�����>�>�.�.�
B����A�9�:� �I�I�,�,�1�1�6�6�x�@�B�B��
B�s�>�B1�AB,�,B1c�h�|jr&|jj|j�yy)NTF)r1r)�env_group_upgrade)r2s rr>zUpgradeCommand._update_groups}s)���!�!��I�I�'�'��(>�(>�?��rN)�__name__�
__module__�__qualname__�__doc__�aliasesr�summary�staticmethodrr3rCr;r<r=r>�rrr
r
$sK���T�G��>�?�G��2��2�
&�,I�(>��	�rr
)�
__future__rr�logging�dnf.exceptionsr�dnf.base�dnf.util�dnf.clir�dnf.cli.option_parserr�dnf.i18nr�	getLoggerrS�Commandr
rfrr�<module>rqsH��*'�'������.��	��	�	�5�	!��]�X�%�%�]r

Youez - 2016 - github.com/yon3zu
LinuXploit