404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.139.72.210: ~ $
3

ػ$g<�@s�dZddlZddlZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZej
ddd	�Zeed
�s|eje_ejZe
�dkr�ddlZdd
�ZnddlmZdd
�Zdd�Zdd�Zdd�Zdd�Zdd�Zejdd��ZdS)zutility functions for up2date�N)�
up2dateErrors)�config)�getPlatform)�sstrzrhn-client-toolsT)Zfallback�ugettext�debcCs6tj�}|d}d}d|kr$|d}|d}|||fS)NZIDzn/aZCODENAMEZRELEASE)�lsb_releaseZget_distro_information)Z	dist_infoZos_nameZ
os_version�
os_release�r
�"/usr/lib/python3.6/up2dateUtils.py�_getOSVersionAndReleasesr)�transactioncCs~tj�}�xn|jdd�D]~}d}t|d�}t|d�}|dd�|dD�kr�td	d�t|d|d
�D��}d||f}||}t|d�||f}|SWx�|jdd
�D]�}d}t|d�}t|d�}|dd�|dD�k�rtdd�t|d|d
�D��}d||f}||}t|d�||f}|SWxL|jdd�D]2}t|d�t|d�t|d�f}|jj�|SWtj	d��dS)NZProvidenamezoraclelinux-releasezsystem-release(releasever)�version�releasecss|]}t|�VqdS)N)r)�.0�provider
r
r�	<genexpr>,sz*_getOSVersionAndRelease.<locals>.<genexpr>Zprovidenamecss"|]\}}t|�t|�fVqdS)N)r)r�n�vr
r
rr-sZprovideversionz%s-%s�namezredhat-releasecss|]}t|�VqdS)N)r)rrr
r
rr8scss"|]\}}t|�t|�fVqdS)N)r)rrrr
r
rr9szdistribution-releasezxCould not determine what version of CloudLinux you are running.
If you get this error, try running 

		rpm --rebuilddb

)
r
ZinitReadOnlyTransactionZdbMatchr�dict�zip�tsZcloseDBrZRpmError)r�hZ	SYSRELVERrrZprovidesZosVersionReleaser
r
rr&s:"
cCs,tj�}|drt|d�St�\}}}|S)z3
    Returns the version of redhat-release rpm
    ZversionOverride)rZinitUp2dateConfig�strr)Zcfgr	rrr
r
r�
getVersionLs
rcCst�\}}}|S)z4
    Returns the name of the redhat-release rpm
    )r)r	rrr
r
r�getOSReleaseVsrcCst�\}}}|S)z7
    Returns the release of the redhat-release rpm
    )r)r	rrr
r
r�
getRelease]srcCsztjdtj�r@tdd�}|j�j�}ddi}||kr<||}|Stj�d}t�dkrv|dkrbd
}|dkrnd}|d
7}|S)Nz/etc/rpm/platform�rzia32e-redhat-linuxzx86_64-redhat-linux�r�i486�i586�i686Zi386Zx86_64�amd64z
-debian-linux)r r!r")�os�access�R_OK�open�read�strip�unamer)�fd�platform�replaceZarchr
r
r�getArchds

r.cCsdS)Nz12.11.5-1.module_el8.10.0+6877+7e1655fd.cloudlinuxr
r
r
r
rrysrccs�tj�\}}tjd�}tjd�}tj|d�tj|d�z
dVWdtj|d�tj|d�Xtj|�tj|��<}tjdj|��}x$|D]}|j	|�s�t
|tjd�q�WWdQRXdS)zP
    Context manager to suppress errors
    matching the specified patterns
    ��N�|)�file)
r$�pipe�dup�dup2�close�fdopen�re�compile�join�search�print�sys�stderr)Zerror_patternsZread_endZ	write_endZ
old_stdoutZ
old_stderr�fZcombined_pattern�liner
r
r�suppress_errors~s





rA)�__doc__�
contextlibr$r=r8�gettextZup2date_clientrrZup2date_client.pkgplatformrZrhn.i18nrZtranslation�t�hasattrr�_rrr
rrrr.r�contextmanagerrAr
r
r
r�<module>s0



&


Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 113 B 0644
__init__.cpython-36.pyc File 113 B 0644
capabilities.cpython-36.opt-1.pyc File 5.28 KB 0644
capabilities.cpython-36.pyc File 5.34 KB 0644
cldetect.cpython-36.opt-1.pyc File 2.31 KB 0644
cldetect.cpython-36.pyc File 2.31 KB 0644
clientCaps.cpython-36.opt-1.pyc File 1.98 KB 0644
clientCaps.cpython-36.pyc File 1.98 KB 0644
clpwd.cpython-36.opt-1.pyc File 3.9 KB 0644
clpwd.cpython-36.pyc File 3.9 KB 0644
config.cpython-36.opt-1.pyc File 10.38 KB 0644
config.cpython-36.pyc File 10.38 KB 0644
debUtils.cpython-36.opt-1.pyc File 2.03 KB 0644
debUtils.cpython-36.pyc File 2.03 KB 0644
getMethod.cpython-36.opt-1.pyc File 2.25 KB 0644
getMethod.cpython-36.pyc File 2.25 KB 0644
haltree.cpython-36.opt-1.pyc File 3.07 KB 0644
haltree.cpython-36.pyc File 3.07 KB 0644
hardware.cpython-36.opt-1.pyc File 18.42 KB 0644
hardware.cpython-36.pyc File 18.42 KB 0644
hardware_gudev.cpython-36.opt-1.pyc File 7.69 KB 0644
hardware_gudev.cpython-36.pyc File 7.69 KB 0644
hardware_hal.cpython-36.opt-1.pyc File 6.73 KB 0644
hardware_hal.cpython-36.pyc File 6.73 KB 0644
hardware_udev.cpython-36.opt-1.pyc File 7.67 KB 0644
hardware_udev.cpython-36.pyc File 7.67 KB 0644
pkgUtils.cpython-36.opt-1.pyc File 269 B 0644
pkgUtils.cpython-36.pyc File 269 B 0644
pkgplatform.cpython-36.opt-1.pyc File 288 B 0644
pkgplatform.cpython-36.pyc File 288 B 0644
pmPlugin.cpython-36.opt-1.pyc File 2.45 KB 0644
pmPlugin.cpython-36.pyc File 2.45 KB 0644
rhnChannel.cpython-36.opt-1.pyc File 4.39 KB 0644
rhnChannel.cpython-36.pyc File 4.39 KB 0644
rhnHardware.cpython-36.opt-1.pyc File 468 B 0644
rhnHardware.cpython-36.pyc File 468 B 0644
rhnPackageInfo.cpython-36.opt-1.pyc File 1.9 KB 0644
rhnPackageInfo.cpython-36.pyc File 1.9 KB 0644
rhncli.cpython-36.opt-1.pyc File 7.17 KB 0644
rhncli.cpython-36.pyc File 7.17 KB 0644
rhnreg.cpython-36.opt-1.pyc File 27 KB 0644
rhnreg.cpython-36.pyc File 27.25 KB 0644
rhnreg_constants.cpython-36.opt-1.pyc File 13.69 KB 0644
rhnreg_constants.cpython-36.pyc File 13.69 KB 0644
rhnserver.cpython-36.opt-1.pyc File 4.6 KB 0644
rhnserver.cpython-36.pyc File 4.6 KB 0644
rpcServer.cpython-36.opt-1.pyc File 7.27 KB 0644
rpcServer.cpython-36.pyc File 7.27 KB 0644
rpmUtils.cpython-36.opt-1.pyc File 3.11 KB 0644
rpmUtils.cpython-36.pyc File 3.11 KB 0644
transaction.cpython-36.opt-1.pyc File 2.59 KB 0644
transaction.cpython-36.pyc File 2.59 KB 0644
tui.cpython-36.opt-1.pyc File 31.25 KB 0644
tui.cpython-36.pyc File 31.25 KB 0644
up2dateAuth.cpython-36.opt-1.pyc File 7.07 KB 0644
up2dateAuth.cpython-36.pyc File 7.07 KB 0644
up2dateErrors.cpython-36.opt-1.pyc File 13.32 KB 0644
up2dateErrors.cpython-36.pyc File 13.32 KB 0644
up2dateLog.cpython-36.opt-1.pyc File 2.48 KB 0644
up2dateLog.cpython-36.pyc File 2.48 KB 0644
up2dateUtils.cpython-36.opt-1.pyc File 4.06 KB 0644
up2dateUtils.cpython-36.pyc File 4.06 KB 0644