Your IP : 3.138.151.175
3
�ft` �@sRddlmZddlmZddlmZddlmZddlmZGdd�dej �Z
dS) �)�absolute_import)�unicode_literals)�commands)�OptionParser)�_c@s8eZdZdZdZed�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�run4szDowngradeCommand.runN)rr )�__name__�
__module__�__qualname__�__doc__�aliasesrZsummary�staticmethodrrr"rrrrrsrN)Z
__future__rrZdnf.clirZdnf.cli.option_parserrZdnf.i18nrZCommandrrrrr�<module>s
?>