HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //lib/python3.6/site-packages/dnf/cli/commands/__pycache__/swap.cpython-36.pyc
3

�ft`s	�@s`ddlmZddlmZddlmZddlmZddlZddl	Z	e	j
d�ZGdd�dej�Z
dS)	�)�absolute_import)�unicode_literals)�_)�commandsN�dnfc@sLeZdZdZdZed�jejj	d�Z
edd��Zdd�Z
d	d
�Zdd�Zd
S)�SwapCommandzNA class containing methods needed by the cli to execute the swap command.
    �swapz=run an interactive {prog} mod for remove and install one spec)�progcCs,|jddtd�d�|jddtd�d�dS)N�remove_specZstorezThe specs that will be removed)�action�help�install_specz The specs that will be installed)�add_argumentr)�parser�r�/usr/lib/python3.6/swap.py�
set_argparser&s
zSwapCommand.set_argparsercCsH|jj}d|_d|_d|_d|_tj|j|j�tj	|j|j
jg�dS)NT)�cli�demandsZsack_activationZavailable_reposZ	resolvingZ	root_userrZ_checkGPGKey�baseZ_checkEnabledRepo�optsr
)�selfrrrr�	configure,szSwapCommand.configurecCs@|jjj|�}|dk	r<||j�}|jjj|||g�|j�dS)N)rZcli_commands�getZ	optparserZparse_command_args�run)rZcmd_str�specZcmd_cls�cmdrrr�_perform5s

zSwapCommand._performcCs$|jd|jj�|jd|jj�dS)N�removeZinstall)rrr
r
)rrrrr<szSwapCommand.runN)r)�__name__�
__module__�__qualname__�__doc__�aliasesr�formatr�utilZMAIN_PROG_UPPERZsummary�staticmethodrrrrrrrrrs	r)Z
__future__rrZdnf.i18nrZdnf.clirZdnf.utilrZloggingZ	getLoggerZloggerZCommandrrrrr�<module>s