AlkantarClanX12
Current Path : /usr/lib/python3.6/site-packages/dnf/__pycache__/ |
Current File : //usr/lib/python3.6/site-packages/dnf/__pycache__/plugin.cpython-36.pyc |
3 ��fV% � @ s� d dl mZ d dl mZ d dl mZ d dlZd dlZd dlZd dlZd dlZd dl Z d dl Z d dlZd dlZd dl Z d dlZd dlZd dlZd dlmZ ejd�ZdZG dd � d e�ZG d d� de�Zdd � Zdd� Zdd� Zdd� Zdd� ZdS )� )�absolute_import)�print_function)�unicode_literalsN)�_�dnfzdnf.plugin.dynamicc @ s\ e Zd ZdZdZdZedd� �Zdd� Zdd � Z d d� Z dd � Zdd� Zdd� Z dd� ZdS )�Pluginz5The base class custom plugins must derive from. #:apiz <invalid>Nc s� t jj� }| jr| jn| j� � fdd�|jD �}xb|D ]Z}tjj|�r6y|j |� W q6 t k r� } ztjj td�t|� ��W Y d d }~X q6X q6W |S )Nc s g | ]}d |� f �qS )z %s/%s.conf� )�.0�path)�namer �/usr/lib/python3.6/plugin.py� <listcomp>9 s z&Plugin.read_config.<locals>.<listcomp>zParsing file failed: %s)�libdnf�confZConfigParser�config_namer Zpluginconfpath�osr �isfile�read� Exceptionr � exceptionsZConfigErrorr �str)�clsr �parser�files�file�er )r r �read_config4 s .zPlugin.read_configc C s || _ || _d S )N)�base�cli)�selfr r r r r �__init__B s zPlugin.__init__c C s d S )Nr )r r r r � pre_configG s zPlugin.pre_configc C s d S )Nr )r r r r �configK s z Plugin.configc C s d S )Nr )r r r r �resolvedO s zPlugin.resolvedc C s d S )Nr )r r r r �sackS s zPlugin.sackc C s d S )Nr )r r r r �pre_transactionW s zPlugin.pre_transactionc C s d S )Nr )r r r r �transaction[ s zPlugin.transaction)�__name__� __module__�__qualname__�__doc__r r �classmethodr r r! r"