Hacked By AnonymousFox
3
�ft`� � @ sR d dl mZ d dl mZ d dlmZ d dlZdZdZG dd� de�Z d
dd �Z
dS )� )�absolute_import)�unicode_literals)�_Nc @ sz e Zd Zddd�Zdd� Zdd� Zdd � Zd
d� Zdd
� Zdd� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zi fdd�ZdS )�TransactionWrapper�/c C s@ t j|�| _ddddddddd d
ddd
ddg| _g | _d| _d S )NZcheck�orderZaddEraseZ
addInstallZaddReinstall�runZpgpImportPubkeyZ
pgpPrtPktsZproblems�setFlags�
setVSFlags�
setProbFilterZhdrFromFdno�nextZcleanT)�rpmZTransactionSet�ts�_methods�tsflags�open)�self�root� r �!/usr/lib/python3.6/transaction.py�__init__ s$ zTransactionWrapper.__init__c C s | j � d S )N)�close)r r r r �__del__+ s zTransactionWrapper.__del__c C s | j r| jj� d | _d| _ d S )NF)r r ZcloseDB)r r r r r / s
zTransactionWrapper.closec O sL d|kr|j d�}ng }| jj||�}x |D ]\}}}|j|||� q,W |S )N�patterns)�popr �dbMatch�pattern)r �args�kwdsr Zmi�tag�tpZpatr r r r 5 s zTransactionWrapper.dbMatchc C s || j kr| j|�S t|��d S )N)r � getMethod�AttributeError)r �attrr r r �__getattr__@ s
zTransactionWrapper.__getattr__c C s | j S )N)r )r r r r �__iter__F s zTransactionWrapper.__iter__c C s t | j|�S )N)�getattrr )r �methodr r r r! I s zTransactionWrapper.getMethodc C s"