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/rpm/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/dnf/rpm/__pycache__/__init__.cpython-39.pyc
a

�!c��@s�ddlmZddlmZddlmZddlmZddlZddl	Zddl
Z
dd�Zd	d
�Zdd�Z
e
d
ddddddddddddddddddd d!d"d#d$d%��Zd&d'�Zd(d)�ZdS)*�)�absolute_import)�unicode_literals�)�transaction)�is_py3bytesNcCs�tj|d�}|�tjtjB�tjjD�]l}tj	j
r@t|d�}z|�d|�}Wn>t
tjfy�}z tj�dt|���WYd}~n
d}~00t|�s�q(zt|�}Wn"ty�d}tj�|��Yn0|d}z�z|tj�|�}Wn*t�y|tj�|�d��}Yn0|tj|}	|tj|}
|	tjk�r^|
�r^|d	||�d�fv�r^|
}Wntttf�yzYn0t|��r�t|d�}|SdS)
z-Calculate the release version for the system.)�root�utf-8Zprovidesz	Error: %sNz:Error: rpmdb failed to list provides. Try: rpm --rebuilddb�version�utf8�name)r�initReadOnlyTransactionZpushVSFlags�rpmZ_RPMVSF_NOSIGNATURESZ_RPMVSF_NODIGESTS�dnf�constZDISTROVERPKGZpycompZPY3�bytesZdbMatch�	TypeError�error�
exceptions�Error�str�len�next�
StopIterationZRPMTAG_PROVIDENAME�index�
ValueError�decodeZRPMTAG_PROVIDEFLAGSZRPMTAG_PROVIDEVERSIONZRPMSENSE_EQUAL�KeyError�
IndexErrorr)Zinstallroot�tsZdistroverpkg�idx�e�hdr�msgZ
releaseverZoff�flagZver�r$�4/usr/lib/python3.9/site-packages/dnf/rpm/__init__.py�detect_releaseversB
*

r&cCs�t��}t|��f}|��}z|�|�}Wn:tjyb}z tj�	d�
||���WYd}~n
d}~00|Wd�S1s|0YdS)zReturn RPM header of the file.z
{0}: '{1}'N)rr�open�filenoZhdrFromFdnor
rrrr�format)�pathr�packageZfdnor!r r$r$r%�_headerIs
*r,cs�fdd��D�S)Ncs i|]}�|D]
}||�qqSr$r$)�.0�k�v�Zdctr$r%�
<dictcomp>V�z_invert.<locals>.<dictcomp>r$r0r$r0r%�_invertUsr3)�aarch64)
�alphaZalphaev4Z	alphaev45Zalphaev5Z	alphaev56Zalphaev6Z	alphaev67Z	alphaev68Zalphaev7Z
alphapca56)Z	armv5tejlZarmv5telZarmv5tlZarmv6lZarmv7lZarmv8l)Zarmv6hlZarmv7hlZarmv7hnlZarmv8hl)�i386ZathlonZgeoder6Zi486Zi586Zi686)�ia64)�mips)�mipsel)�mips64)�mips64el)�loongarch64)�noarch)�ppc)�ppc64Zppc64iseriesZppc64p7Zppc64pseries)�ppc64le)�riscv32)�riscv64)�riscv128)�s390)�s390x)�sh3)�sh4Zsh4a)�sparcZsparc64Zsparc64vZsparcv8Zsparcv9Zsparcv9v)�x86_64Zamd64Zia32e)r4r5ZarmZarmhfpr6r7r8r9r:r;r<r=r>r?r@rArBrCrDrErFrGrHrIcCst|S)N)�
_BASEARCH_MAP)Zarchr$r$r%�basearchvsrKcCs||}t|�rt|d�}|S)z�
    Returns value of rpm_hdr[key] as a string. Rpm has switched from bytes to str
    and we need to handle both properly.
    r)rr)Zrpm_hdr�key�valuer$r$r%�	getheader{s
rN)Z
__future__rr�rZ
dnf.pycomprZ	dnf.constrZdnf.exceptionsr
r&r,r3rJrKrNr$r$r$r%�<module>sJ,�

Youez - 2016 - github.com/yon3zu
LinuXploit