Hacked By AnonymousFox

Current Path : /usr/lib/python3.6/site-packages/dnf/rpm/__pycache__/
Upload File :
Current File : //usr/lib/python3.6/site-packages/dnf/rpm/__pycache__/transaction.cpython-36.pyc

3

�ft`��@sRddlmZddlmZddlmZddlZdZdZGdd�de�Z	d
dd	�Z
dS)�)�absolute_import)�unicode_literals)�_Nc@szeZdZddd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zifdd�ZdS)�TransactionWrapper�/cCs@tj|�|_ddddddddd	d
ddd
ddg|_g|_d|_dS)NZcheck�orderZaddEraseZ
addInstallZaddReinstall�runZpgpImportPubkeyZ
pgpPrtPktsZproblems�setFlags�
setVSFlags�
setProbFilterZhdrFromFdno�nextZcleanT)�rpmZTransactionSet�ts�_methods�tsflags�open)�self�root�r�!/usr/lib/python3.6/transaction.py�__init__s$zTransactionWrapper.__init__cCs|j�dS)N)�close)rrrr�__del__+szTransactionWrapper.__del__cCs |jr|jj�d|_d|_dS)NF)rrZcloseDB)rrrrr/s
zTransactionWrapper.closecOsLd|kr|jd�}ng}|jj||�}x |D]\}}}|j|||�q,W|S)N�patterns)�popr�dbMatch�pattern)r�args�kwdsrZmi�tag�tpZpatrrrr5szTransactionWrapper.dbMatchcCs ||jkr|j|�St|��dS)N)r�	getMethod�AttributeError)r�attrrrr�__getattr__@s

zTransactionWrapper.__getattr__cCs|jS)N)r)rrrr�__iter__FszTransactionWrapper.__iter__cCst|j|�S)N)�getattrr)r�methodrrrr!IszTransactionWrapper.getMethodcCs"|jj|�|jj|jd�dS)N����)r�appendrr
)r�flagsrrr�pushVSFlagsQszTransactionWrapper.pushVSFlagscCs |jjd�}|jj||B�dS)Nr)rr	)r�flag�curflagsrrr�	addTsFlagUszTransactionWrapper.addTsFlagcCs|jjd�}|jj|�|S)Nr)rr	)rr.rrr�
getTsFlagsYszTransactionWrapper.getTsFlagscCs|j�}t||@�S)N)r0�bool)rr-�valrrr�isTsFlagSet^szTransactionWrapper.isTsFlagSetcCs|j�|j_dS)N)�filenorZscriptFd)r�fdrrr�setScriptFdbszTransactionWrapper.setScriptFdc
Cs�|j�}|jtj�|jd�dkr0|jjtj�|jj|j	d�}|jj
|�g}|dk	r�x |D]\}\}}}	|j|�q^W|s�|jtd��|S)zetests the ts we've setup, takes a callback function and a conf dict
           for flags and what notZdiskspacecheckr�Nz(Errors occurred during test transaction.)
r0r/r
ZRPMTRANS_FLAG_TEST�getrrZRPMPROB_FILTER_DISKSPACEr�callbackr	r*r)
r�cbZconfZ	origflagsZtserrorsZ	reserrorsZdescr�etypeZmountZneedrrr�testeszTransactionWrapper.testN)r)�__name__�
__module__�__qualname__rrrrr$r%r!r,r/r0r3r6r<rrrrrs
rrcCs t|d�}|jtjtjB�|S)N)r)rr,r
Z_RPMVSF_NOSIGNATURESZ_RPMVSF_NODIGESTS)r�read_tsrrr�initReadOnlyTransaction{s
rA)r)Z
__future__rrZdnf.i18nrr
r@r�objectrrArrrr�<module>se

Hacked By AnonymousFox1.0, Coded By AnonymousFox