404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.227.46.54: ~ $
3

�`g��@s�dZddlZddlTddlTddljZejZejZejZejZej	Z	e
e	jd��Zyddl
TWnek
rrYnXyddlTWnek
r�YnXeZdd�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||�S)z"DEPRECATED! Use rpm.hdr() instead.zUse rpm.hdr() instead.�)�
stacklevel)�warnings�warn�DeprecationWarning�hdr)�args�kwds�r� /usr/lib64/python3.6/__init__.py�
headerLoadAsrcCsLg}xBy$t|�}|r|jt�|j|�Wqtjk
rBPYqXqW|S)N)r	ZconvertZHEADERCONV_RETROFIT_V3�append�_rpm�error)Zrpm_fd�retrofit�hlist�hrrr
�_doHeaderListFromFDGs
rTcCst|t�st|�}t||�S)N)�
isinstance�fdr)�	file_descrrrr
�readHeaderListFromFDUs
rcCst|�}t||�}|j�|S)N)rr�close)�pathr�frrrr
�readHeaderListFromFile[s
rcCsRt|t�st|�}y|j�}t|�}Wn"tjtfk
rHd}d}YnX||fS)zReturn (header, pos_before_hdr)N)rr�tellr	rr�IOError)r�offsetrrrr
�readHeaderFromFDbs

r!cCs(g}x|D]}t|�r
|j|�q
W|S)z)Returns list of signals that were caught.)ZsignalCaughtr)ZsiglistZcaughtZsigrrr
�
signalsCaughtps

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
�dsSinglezsr%)T)T)�__doc__rZrpm._rpmZrpm.transactionrZ_RPMVSF_NODIGESTSZ_RPMVSF_NOHEADERZ_RPMVSF_NOPAYLOADZ_RPMVSF_NOSIGNATURES�__version__�tuple�splitZ__version_info__Z	rpm._rpmb�ImportErrorZ	rpm._rpmsZTransactionSetZtsrrrrr!r"ZRPMSENSE_ANYr%rrrr
�<module>#s4




Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 3.24 KB 0644
__init__.cpython-36.pyc File 3.24 KB 0644
transaction.cpython-36.opt-1.pyc File 5.52 KB 0644
transaction.cpython-36.pyc File 5.52 KB 0644