관리-도구
편집 파일: history.cpython-36.pyc
3 �ft`%: � @ s� d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlm Z d dl mZ ddlm Z mZmZ G dd� de�ZG d d � d e�ZG dd� de�ZG d d� de�ZdS )� N)�ucd)�misc)� DatabaseError� )�GroupPersistor�EnvironmentPersistor�RPMTransactionc @ sj e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dd� Zdd� Zdd� Z edd� �Zedd� �Zedd� �Zedd� �Zedd � �Zed!d"� �Zed#d$� �Zed%d&� �Zejd'd&� �Zed(d)� �Zejd*d)� �Zed+d,� �Zed-d.� �Zed/d0� �Zejd1d0� �Zed2d3� �Zd4d5� Zed6d7� �Zd8d9� Zed:d;� �Z ed<d=� �Z!ed>d?� �Z"d@S )A�RPMTransactionItemWrapperc C s |d k st �|| _|| _d S )N)�AssertionError�_swdb�_item)�self�swdb�item� r �/usr/lib/python3.6/history.py�__init__# s z"RPMTransactionItemWrapper.__init__c C s | j j� j� S )N)r ZgetItemZtoStr)r r r r �__str__( s z!RPMTransactionItemWrapper.__str__c C s | j |j k S )N)r )r �otherr r r �__lt__+ s z RPMTransactionItemWrapper.__lt__c C s | j |j kS )N)r )r r r r r �__eq__. s z RPMTransactionItemWrapper.__eq__c C s | j j� S )N)r �__hash__)r r r r r 1 s z"RPMTransactionItemWrapper.__hash__c C s dS )NTr )r �patternr r r �match4 s zRPMTransactionItemWrapper.matchc C s | j j� d k S )N)r � getRPMItem)r r r r � is_package7 s z$RPMTransactionItemWrapper.is_packagec C s | j j� d k S )N)r �getCompsGroupItem)r r r r �is_group: s z"RPMTransactionItemWrapper.is_groupc C s | j j� d k S )N)r �getCompsEnvironmentItem)r r r r �is_environment= s z(RPMTransactionItemWrapper.is_environmentc C s | j j� S )N)r r )r r r r � get_group@ s z#RPMTransactionItemWrapper.get_groupc C s | j j� S )N)r r )r r r r �get_environmentC s z)RPMTransactionItemWrapper.get_environmentc C s | j j� j� S )N)r r ZgetName)r r r r �nameF s zRPMTransactionItemWrapper.namec C s | j j� j� S )N)r r ZgetEpoch)r r r r �epochJ s zRPMTransactionItemWrapper.epochc C s | j j� j� S )N)r r Z getVersion)r r r r �versionN s z!RPMTransactionItemWrapper.versionc C s | j j� j� S )N)r r Z getRelease)r r r r �releaseR s z!RPMTransactionItemWrapper.releasec C s | j j� j� S )N)r r ZgetArch)r r r r �archV s zRPMTransactionItemWrapper.archc C s* | j rdj| j | j| j�S dj| j| j�S )Nz{}:{}-{}z{}-{})r# �formatr$ r% )r r r r �evrZ s zRPMTransactionItemWrapper.evrc C s | j j� j� S )N)r r ZgetNEVRA)r r r r �nevra` s zRPMTransactionItemWrapper.nevrac C s | j j� S )N)r Z getAction)r r r r �actiond s z RPMTransactionItemWrapper.actionc C s | j j|� d S )N)r Z setAction)r �valuer r r r* h s c C s | j j� S )N)r Z getReason)r r r r �reasonl s z RPMTransactionItemWrapper.reasonc C s | j j|�S )N)r Z setReason)r r+ r r r r, p s c C s$ y | j j� S tk r dS X d S )N� )r Z getActionName�AttributeError)r r r r �action_namet s z%RPMTransactionItemWrapper.action_namec C s$ y | j j� S tk r dS X d S )Nr- )r ZgetActionShortr. )r r r r �action_short{ s z&RPMTransactionItemWrapper.action_shortc C s | j j� S )N)r �getState)r r r r �state� s zRPMTransactionItemWrapper.statec C s | j j|� d S )N)r �setState)r r+ r r r r2 � s c C s | j j� S )N)r � getRepoid)r r r r � from_repo� s z#RPMTransactionItemWrapper.from_repoc C s | j j� sdS d| j j� S )Nr- �@)r r4 )r r r r �ui_from_repo� s z&RPMTransactionItemWrapper.ui_from_repoc C s d S )Nr )r r r r � obsoleting� s z$RPMTransactionItemWrapper.obsoletingc C s | j jj| �S )N)r �rpm� get_reason)r r r r r: � s z$RPMTransactionItemWrapper.get_reasonc C s | j jj| j S )N)r r9 Z_swdb_ti_pkgr )r r r r �pkg� s zRPMTransactionItemWrapper.pkgc C s | j jS )N)r; �files)r r r r r<