403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib/python3.9/site-packages/dnf/cli/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/dnf/cli/__pycache__/main.cpython-39.opt-1.pyc
a

�!cf�@sPdZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZdd	l
mZdd
lmZddlZddlZddl	ZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZe�d�Zd
d�Zdd�Z eee
fdd�Z!dd�Z"dd�Z#dd�Z$d dd�Z%e&dk�rLe%ej'dd�dd�dS)!z4
Entrance point for the yum command line interface.
�)�print_function)�absolute_import)�unicode_literals)�Conf)�Cli)�OptionParser)�ucd)�show_lock_owner)�_N�dnfcCs&tjtjjddd�t�t|��dS)N�T��exc_info�)�logger�logr�logging�SUBDEBUG�criticalr��e�r�0/usr/lib/python3.9/site-packages/dnf/cli/main.py�
ex_IOError2srcCs6tjtjjddd�|jdur2t�td�t|��dS)NrTr
�	Error: %sr)	rrrrr�valuerr
rrrrr�ex_Error8s
rc
CszPtj��tjj�|��� }t||||�Wd�WS1sB0YW�n�tjjy�}z$t�	|j
�t|j�WYd}~dSd}~0tjj
y�}zt�	|j
�WYd}~dSd}~0tjj�y�}zWYd}~dSd}~0tjj�y}zt|�WYd}~Sd}~0tj�yZ}z"t�	td�t|��WYd}~dSd}~0tjj�y�}z"t�	td�t|��WYd}~dSd}~0t�y�}zt|�WYd}~Sd}~0t�y}z*t�	d�t|�jtd���WYd}~dSd}~00dS)N��rrz{}: {}zTerminated.)rZi18nZsetup_stdout�cliZBaseCli�_main�
exceptionsZProcessLockErrorrrrr	�pid�	LockError�
DepsolveError�Errorr�hawkey�	Exceptionr
r�libdnf�error�IOErrorr�KeyboardInterrupt�format�type�__name__)�argsZ
conf_class�	cli_classZoption_parser_class�baserrrr�main?s4
4
r1c
Csj|j��||�}z|�ttt|��|��Wn0ttfy^}zt|�WYd}~Sd}~00t	||�S)z2Run the dnf program from a command line interface.N)
Z_loggingZ	_presetupZ	configure�list�maprr)�OSErrorr�cli_run)r0r.r/Z
option_parserrrrrrr\s
rc
Cs�ztd�}WnHtyT}z0|jtjkr@t�td��t�d�WYd}~nd}~00|�	�z|�
�WnFtjj
y��Yn0ttfy�}zt|�WYd}~Sd}~00|jj�r�zt||�}W�ntjj�y�}z�t|�d}|jj�s|jjdd��r|td��d�7}|jjj�rR|�s@|td	��d
�7}n|td��d
�7}|jjj�r�|jj�d�}|tjjk�r�|�s�|td
��d�7}n|td��d�7}|�r�t�d�|���WYd}~n
d}~00|�r�|S|j� �|jj!S)N�.z8No read/execute access in current directory, moving to /�/rT)Z	availablez?try to add '{}' to command line to replace conflicting packagesz--allowerasingz.try to add '{}' to skip uninstallable packagesz
--skip-brokenz' or '{}' to skip uninstallable packages�bestz7try to add '{}' to use not only best candidate packagesz--nobestz0 or '{}' to use not only best candidate packagesz({}))"�openr)�errnoZEACCESrrr
�os�chdir�close�runrr r"r4r�demands�	resolvingr#r�
allow_erasingZ_goalZproblem_conflictsr+r0Zconf�strictr8Z
_get_priorityZPRIO_MAINCONFIG�info�commandZrun_transactionZsuccess_exit_status)rr0�fr�ret�msgZpriorrrr5ms\ 

�
�
�
�
r5c
Cs|jdur&|�|jj�t�td��|j��g}|jj	durN|�
|jj	�z|j|d�Wn�tj
jy�}zt�t|��WYd}~dSd}~0tjjy�}z*|j�|�D]}t�|�q�WYd}~dSd}~0t�y}zt|�WYd}~Sd}~00t�td��dS)z9Perform the depsolve, download and RPM transaction stage.NzDependencies resolved.)Zdisplayrz	Complete!r)Ztransaction�resolver?rArrCr
rDZrun_resolvedZtransaction_display�appendZdo_transactionrrZCliErrorr(rr ZTransactionCheckErrorZget_error_outputrr)r)rr0Zdisplays�exc�errrGrrrrr@�s(

r@FcCst|�}|rt�|�|S)apCall one of the multiple main() functions based on environment variables.

    :param args: command line arguments passed into yum
    :param exit_code: if *exit_code* is True, this function will exit
       python with its exit code when it has finished executing.
       Otherwise, it will return its exit code.
    :return: the exit code from dnf.yum execution
    )r1�sys�exit)r.�	exit_codeZerrcoderrr�	user_main�s

rO�__main__rT)rN)F)(�__doc__Z
__future__rrrZdnf.confrZdnf.cli.clirZdnf.cli.option_parserrZdnf.i18nrZ
dnf.cli.utilsr	r
Zdnf.clirZdnf.exceptionsZdnf.loggingZdnf.utilr:r%Zlibdnf.errorr'rr;Zos.pathrLZ	getLoggerrrrr1rr5r@rOr-�argvrrrr�<module>sB
5



Youez - 2016 - github.com/yon3zu
LinuXploit