HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux ns565604.ip-54-39-133.net 4.18.0-553.50.1.el8_10.x86_64 #1 SMP Tue Apr 15 08:09:22 EDT 2025 x86_64
User: greer489 (1034)
PHP: 8.3.19
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/dnf/cli/commands/__pycache__/downgrade.cpython-36.opt-1.pyc
3

�ft`	�@sRddlmZddlmZddlmZddlmZddlmZGdd�dej	�Z
dS)	�)�absolute_import)�unicode_literals)�commands)�OptionParser)�_c@s8eZdZdZdZed�Zedd��Zdd�Z	d	d
�Z
dS)
�DowngradeCommandzWA class containing methods needed by the cli to execute the
    downgrade command.
    �	downgrade�dgzDowngrade a packagecCs|jddtd�tjd�dS)N�package�*zPackage to downgrade)�nargs�help�action)�add_argumentrrZParseSpecGroupFileCallback)�parser�r�/usr/lib/python3.6/downgrade.py�
set_argparser$szDowngradeCommand.set_argparsercCsH|jj}d|_d|_d|_d|_tj|j|j�|j	j
sDtj|j�dS)NT)Zcli�demandsZsack_activationZavailable_reposZ	resolvingZ	root_userrZ_checkGPGKey�base�opts�	filenamesZ_checkEnabledRepo)�selfrrrr�	configure)szDowngradeCommand.configurecCsJ|jj|jjd|jjjd�}|jj|jjdd�|jjD�||jj	j
d�S)NF)�strict�progresscSsg|]}d|�qS)�@r)�.0�xrrr�
<listcomp>8sz(DowngradeCommand.run.<locals>.<listcomp>)Zspecs�	file_pkgsr)rZadd_remote_rpmsrr�outputrZ
downgradePkgsZ	pkg_specsZ	grp_specsZconfr)rr rrr�run4szDowngradeCommand.runN)rr	)�__name__�
__module__�__qualname__�__doc__�aliasesrZsummary�staticmethodrrr"rrrrrsrN)Z
__future__rrZdnf.clirZdnf.cli.option_parserrZdnf.i18nrZCommandrrrrr�<module>s