관리-도구
편집 파일: swap.cpython-39.pyc
a �����!cA ����������������������@���s`���d�dl�mZ�d�dl�mZ�d�dlmZ�d�dlmZ�d�dlZd�dl Z e � d�ZG�dd��dej�Z dS�) �����)�absolute_import)�unicode_literals)�_)�commandsN�dnfc�������������������@���sL���e�Zd�ZdZdZed�jejj d�Z edd���Zdd��Z d d ��Zdd��Zd S�)�SwapCommandzNA class containing methods needed by the cli to execute the swap command. )Zswapz=run an interactive {prog} mod for remove and install one spec)�progc�����������������C���s,���|�j�ddtd�d��|�j�ddtd�d��d�S�)N�remove_spec�storezThe specs that will be removed)�action�help�install_specz The specs that will be installed)�add_argumentr���)�parser��r����9/usr/lib/python3.9/site-packages/dnf/cli/commands/swap.py� set_argparser&���s���� �zSwapCommand.set_argparserc�����������������C���sH���|�j�j}d|_d|_d|_d|_t�|�j|�j���t� |�j|�j jg��d�S�)NT)�cli�demandsZsack_activationZavailable_reposZ resolvingZ root_userr���Z_checkGPGKey�baseZ_checkEnabledRepo�optsr ���)�selfr���r���r���r���� configure,���s����zSwapCommand.configurec�����������������C���s@���|�j�j�|�}|d�ur<||�j��}|�j�j�|||g��|����d�S�)N)r���Zcli_commands�getZ optparserZparse_command_args�run)r���Zcmd_str�specZcmd_cls�cmdr���r���r����_perform5���s ���� zSwapCommand._performc�����������������C���s$���|���d|�jj��|���d|�jj��d�S�)N�install�remove)r���r���r ���r ���)r���r���r���r���r���<���s����zSwapCommand.runN)�__name__� __module__�__qualname__�__doc__�aliasesr����formatr����utilZMAIN_PROG_UPPERZsummary�staticmethodr���r���r���r���r���r���r���r���r������s���� r���)Z __future__r���r���Zdnf.i18nr���Zdnf.clir���Zdnf.utilr���ZloggingZ getLogger�loggerZCommandr���r���r���r���r����<module>���s���