관리-도구
편집 파일: universal_hooks.cpython-36.pyc
3 ���_ � @ s d dl Z d dlZd dlZd dlZd dlmZ d dlZd dlZd dlZd dlZd dl m Z eje�Z e jej� e jejej�� G dd� de �ZG dd� de jd�ZG d d � d e�Ze� Zddd �ZG dd� de jd�ZG dd� de�Zdd� Zdd� Zdd� ZdS )� N)�path)�Pluginc sP e Zd ZdZ� fdd�Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z � ZS )�UniversalHooksPluginzuniversal-hooksc s t � j||� d| _d S )Nz/etc/dnf/universal-hooks)�super�__init__� hook_root)�self�baseZcli)� __class__� �%/usr/lib/python3.6/universal_hooks.pyr , s zUniversalHooksPlugin.__init__c C s t tj| j| jj�t� d S )N)�_run_dirr �joinr � pre_config�__name__�LOG)r r r r r 0 s zUniversalHooksPlugin.pre_configc C s t tj| j| jj�t� d S )N)r r r r �configr r )r r r r r 3 s zUniversalHooksPlugin.configc C s t tj| j| jj�t� d S )N)r r r r �resolvedr r )r r r r r 6 s zUniversalHooksPlugin.resolvedc C s t tj| j| jj�t� d S )N)r r r r �sackr r )r r r r r 9 s zUniversalHooksPlugin.sackc C s8 | j j}t| jt|t| jj�� tt j | j|�t� d S )N)�pre_transactionr � _run_pkg_dirsr r �DnfTransactionInfor �transactionr r r )r �namer r r r <