Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/dnf/__pycache__/ |
Upload File : |
a �!c�d � @ s� d dl mZ d dl mZ d dl mZ d dlZd dlZd dlmZ d dlZ d dl Z d Zd Zdeef Z G dd� de jj�ZG d d � d e jj�ZG dd� de�Zd d� Zdd� ZG dd� de�ZdS )� )�absolute_import)�print_function)�unicode_literalsN)�_�%s.%sc s e Zd Z� fdd�Z� ZS )�TransactionErrorc s t t| ��|� d S �N)�superr �__init__)�self�msg�� __class__� �6/usr/lib/python3.9/site-packages/dnf/transaction_sr.pyr / s zTransactionError.__init__��__name__� __module__�__qualname__r � __classcell__r r r r r . s r c s e Zd Z� fdd�Z� ZS )�TransactionReplayErrorc sr || _ 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 r r )r r r r �errorr r r r 4 s zTransactionReplayError.__init__r r r r r r 3 s r c s e Zd Z� fdd�Z� ZS )�#IncompatibleTransactionVersionErrorc s t t| ��||� d S r )r r r )r r r r r r r M s z,IncompatibleTransactionVersionError.__init__r r r r r r L s r c C s� | � d�\}}zt|�}W n: tyT } z"t|td�j|d���W Y d }~n d }~0 0 zt|� W n: ty� } z"t|td�j|d���W Y d }~n d }~0 0 |tkr�t|td�j|td���d S )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� ValueErrorr r r � VERSION_MAJORr )�versionr r! r"