404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.222.161.119: ~ $
3

e�$g�@s�ddlmZddlmZyddlZWnek
r@ddlZYnXddlZejddd�Ze	ed�sjeje_
ej
Zdd	idd
idd
idd
idd
idd
idd
idd
id�Zdd
�Z
Gdd�dej�ZdS)�)�config)�
up2dateErrorsNzrhn-client-toolsT)Zfallback�ugettext�versionZ21�1)�caneatCheese�supportsAutoUp2dateOptionzregistration.finish_messagez xmlrpc.packages.extended_profilezregistration.delta_packagesz registration.update_contact_infoz$registration.extended_update_supportzregistration.smbiosc	Cs�d}|jd�}g}x�|D]�}ydd�|jdd�D�\}}Wntk
rPwYnX|jdd�\}}|d
dkrvtd�|dd�}||d	�}|j||f�qW|S)N�,cSsg|]}|j��qS�)�strip)�.0�ir
r
�"/usr/lib/python3.6/capabilities.py�
<listcomp>#szparseCap.<locals>.<listcomp>�=��(�)z2something broke in parsing the capabilited headers)r�value���r)�split�
ValueError�print�append)	Z	capstringrZcaps�capslist�capZkey_version�keyr�datar
r
r�parseCaps


rc@sNeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	ddd�Z
dS)�CapabilitiescCs&tjj|�i|_t|_tj�|_dS)N)�UserDict�__init__�missingCaps�
neededCapsrZinitUp2dateConfig�cfg)�selfr
r
rr!:szCapabilities.__init__cCsJxD|j�D]8\}}|j�dkr
t|�}x|D]\}}||j|<q,Wq
WdS)Nzx-rhn-server-capability)�items�lowerrr)r%Zheadersr�valrrrr
r
r�populateCs
zCapabilities.populatecCsx|jd�}|dkrF|jd�}|d}|d}tt|�t|�d�}|S|jd�}t|�dkrndd�|D�}|St|�gS)N�-rr�:cSsg|]}t|��qSr
)�int)r�ar
r
rrWsz0Capabilities.parseCapVersion.<locals>.<listcomp>)�findr�ranger,�len)r%Z
versionString�index�rng�start�endZversionsZversr
r
r�parseCapVersionKs


zCapabilities.parseCapVersioncCsZ||jkr"td�|}d|j|<n4|j|}t|d�|j|d�krV|j||j|<dS)NzXThis client requires the server to support %s, which the current server does not supportr)r�_r"r,r5r#)r%rZcapvalueZerrstrrr
r
r�validateCap\s

zCapabilities.validateCapcCs2x$|jj�D]}|j||j|�qW|j�dS)N)r#�keysr7�workaroundMissingCaps)r%rr
r
r�validatehszCapabilities.validatecCs,||jkrd|j|<|j|=n
d|j|<dS)Nrr)�tmpCapsr$)r%rZ
configItemr
r
r�	setConfigns


zCapabilities.setConfigc	CsZ|j|_d}||jkr |j|=ndddddddd	�}x |j�D]}|j|||�q>Wg}g}t|j�r�x>|jD]4}|j|}|dkr�|j||f�qp|j||f�qpWd
}g}t|��rxH|D]@\}}|d||d|j|df}|j|||j|d
��q�Wt|��r@x0|D](\}}|d|}|j||d
d
���qWt|��rVtj||��dS)NrrZsupportsFinishMessageZsupportsUpdateContactInfoZsupportsDeltaPackagesZsupportsExtendedPackageProfileZsupportsEUSZsupportsSMBIOS)rzregistration.finish_messagez registration.update_contact_infozregistration.delta_packagesz xmlrpc.packages.extended_profilez$registration.extended_update_supportzregistration.smbios�z3Needs %s of version: %s but server has version: %s
r)ZcapName�capInfoZ
serverVersionz5Needs %s but server does not support that capability
)	r"r;r8r<r0rrrZServerCapabilityError)	r%rZ
capsConfigMapr"ZwrongVersionCapsrr>Z	errStringZ	errorListr
r
rr9usF

	




z"Capabilities.workaroundMissingCapsNcCsR|dkst|�j�st�||jkr&dS|rN|j|}t|�|j|d�krNdSdS)a�Checks if the server supports a capability and optionally a version.
        Returns True or False.

        This complements the neededCaps mechanism provided by this module.
        Using hasCapability makes it easier to do something only if the server
        supports it or to put workaround code in the user of this class. The
        neededCaps mechanism makes it easier to put workaround code in this
        module, which makes sense if it is to be shared.

        'capability' should be a string such as 'registration.foobar'. It can
        be a capability in 'neededCaps' above or one that isn't there. 'version'
        can be a string (where isdigit() is True) or an int.

        NFrT)�str�isdigit�AssertionErrorrr,r5)r%Z
capabilityrrr
r
r�
hasCapability�s

zCapabilities.hasCapability)N)�__name__�
__module__�__qualname__r!r)r5r7r:r<r9rBr
r
r
rr9s	<r)Zup2date_clientrrr �ImportError�collections�gettextZtranslation�t�hasattrrr6r#rrr
r
r
r�<module>s(


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