⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.177
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib64
/
python3.9
/
site-packages
/
rpm
/
__pycache__
/
View File Name :
__init__.cpython-39.pyc
a ^ @ s d Z ddlZddlT ddlT ddlmZ ejZejZejZejZej Z e e dZe Zdd Zdd Zdd dZddd Zdd Zdd ZdefddZdS )aK RPM 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 O s t jdtdd t| i |S )z"DEPRECATED! Use rpm.hdr() instead.zUse rpm.hdr() instead. ) stacklevel)warningswarnDeprecationWarninghdr)argskwds r 2/usr/lib64/python3.9/site-packages/rpm/__init__.py headerLoad5 s r c C sH g }z$t | }|r|t || W q tjy@ Y qDY q0 q|S N)r ZconvertZHEADERCONV_RETROFIT_V3append_rpmerror)Zrpm_fdretrofithlisthr r r _doHeaderListFromFD; s r Tc C s t | tst| } t| |S r ) isinstancefdr ) file_descr r r r readHeaderListFromFDI s r c C s t | }t||}| |S r )r r close)pathr fr r r r readHeaderListFromFileO s r c C sP t | tst| } z| }t| }W n tjtfyF d}d}Y n0 ||fS )zReturn (header, pos_before_hdr)N)r r tellr r r IOError)r offsetr r r r readHeaderFromFDV s r" c C s$ g }| D ]}t |r|| q|S )z)Returns list of signals that were caught.)ZsignalCaughtr )ZsiglistZcaughtZsigr r r signalsCaughtd s r# c C s t |||f| S )z~ Creates a single entry dependency set (ds) dsSingle(RPMTAG_CONFLICTNAME, "rpm") corresponds to "Conflicts: rpm" )Zds)ZTagNNZEVRZFlagsr r r dsSinglen s r&