403Webshell
Server IP : 88.99.149.37  /  Your IP : 216.73.216.141
Web Server : nginx/1.31.2
System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64
User : muralimurth ( 1015)
PHP Version : 8.4.23
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib64/python3.12/site-packages/rpm/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib64/python3.12/site-packages/rpm/__pycache__/__init__.cpython-312.pyc
�

s��e����dZddlZddl�ddl�ddlmZej
ZejZejZejZejZ	e
e	jd��Ze
Zd�Zd�Zd
d�Zd
d�Zd	�Zd
�Zdefd�Zy)aKRPM Module

This module enables you to manipulate rpms and the rpm database.

The rpm base module provides the main starting point for
accessing RPM from Python. For most usage, call
the TransactionSet method to get a transaction set (rpmts).

For example:
	import rpm
	ts = rpm.TransactionSet()

The transaction set will open the RPM database as needed, so
in most cases, you do not need to explicitly open the
database. The transaction set is the workhorse of RPM.

You can open another RPM database, such as one that holds
all packages for a given Linux distribution, to provide
packages used to solve dependencies. To do this, use
the following code:

rpm.addMacro('_dbpath', '/path/to/alternate/database')
solvets = rpm.TransactionSet()
solvets.openDB()
rpm.delMacro('_dbpath')

# Open default database
ts = rpm.TransactionSet()

This code gives you access to two RPM databases through
two transaction sets (rpmts): ts is a transaction set
associated with the default RPM database and solvets
is a transaction set tied to an alternate database, which
is very useful for resolving dependencies.
�N)�*�.c�P�tjdtd��t|i|��S)z"DEPRECATED! Use rpm.hdr() instead.zUse rpm.hdr() instead.�)�
stacklevel)�warnings�warn�DeprecationWarning�hdr)�args�kwdss  �3/usr/lib64/python3.12/site-packages/rpm/__init__.py�
headerLoadr5s$���M�M�*�,>�1�M�������c��g}		t|�}|r|jt�|j|��5#tj
$rY|SwxYw�N)r�convert�HEADERCONV_RETROFIT_V3�append�_rpm�error)�rpm_fd�retrofit�hlist�hs    r�_doHeaderListFromFDr;sU���E�
�	��F��A���	�	�0�1��L�L��O����z�z�	���L�	�s�39�A�Ac�P�t|t�st|�}t||�Sr)�
isinstance�fdr)�	file_descrs  r�readHeaderListFromFDr!Is"���i��$��y�M�	��y�(�3�3rc�T�t|�}t||�}|j�|Sr)rr�close)�pathr�frs    r�readHeaderListFromFiler&Os%��
�4��A���8�,�E��G�G�I��Lrc���t|t�st|�}	|j�}t|�}||fS#tj
tf$r
d}d}Y||fSwxYw)zReturn (header, pos_before_hdr)N)rr�tellrrr�IOError)r �offsetrs   r�readHeaderFromFDr+Vsi���i��$��y�M�	�����!���	�N��

�v�;���	
�J�J�� ������
�v�;��	�s�<�A�Ac�R�g}|D]}t|�s�|j|��!|S)z)Returns list of signals that were caught.)�signalCaughtr)�siglist�caught�sigs   r�
signalsCaughtr1ds,��
�F�������M�M�#����Mr�c� �t|||f|�S)z~
    Creates a single entry dependency set (ds)

    dsSingle(RPMTAG_CONFLICTNAME, "rpm") corresponds to "Conflicts: rpm"
    )�ds)�TagN�N�EVR�Flagss    r�dsSingler9ns���q�%��o�t�$�$r)T)�__doc__r�rpm._rpm�rpm.transactionr�_RPMVSF_NODIGESTS�_RPMVSF_NOHEADER�_RPMVSF_NOPAYLOAD�_RPMVSF_NOSIGNATURES�__version__�tuple�split�__version_info__�TransactionSet�tsrrr!r&r+r1�RPMSENSE_ANYr9�rr�<module>rIs���"�H�����*�*���(�(���*�*���0�0��������*�*�3�/�0������4�����L�%r

Youez - 2016 - github.com/yon3zu
LinuXploit