$66 GRAYBYTE WORDPRESS FILE MANAGER $23

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 147.79.69.241 | ADMIN IP 216.73.216.143
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/lib64/python3.6/site-packages/rpm/__pycache__/

HOME
Current File : /lib64/python3.6/site-packages/rpm/__pycache__//__init__.cpython-36.pyc
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




Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
28 Feb 2025 12.47 AM
root / root
0755
__init__.cpython-36.opt-1.pyc
3.244 KB
17 Dec 2024 4.11 AM
root / root
0644
__init__.cpython-36.pyc
3.244 KB
17 Dec 2024 4.11 AM
root / root
0644
transaction.cpython-36.opt-1.pyc
5.521 KB
17 Dec 2024 4.11 AM
root / root
0644
transaction.cpython-36.pyc
5.521 KB
17 Dec 2024 4.11 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF