관리-도구
편집 파일: etckeeper.cpython-36.pyc
3 ��c � @ s` d dl Z d dlZd dlZe jd�ZG dd� dej�Zedkr\d dlm Z e ddgdd id � dS )� Nz dnf.pluginc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) � Etckeeper� etckeeperc C s� t jd|� yLtdd��8}tjd|f||dd�}|dkrLtjjd||f ��W d Q R X W n4 tk r� } zt j d ||f � W Y d d }~X nX d S ) NzEtckeeper plugin: %sz /dev/null�wbr T)�stdout�stderrZ close_fdsr z"etckeeper %s" returned: %dz Failed to run "etckeeper %s": %s) �logger�debug�open� subprocessZcall�dnf� exceptions�Error�OSErrorZwarning)�selfZcommand�devnull�ret�err� r �/usr/lib/python3.6/etckeeper.py�_run_command s "zEtckeeper._run_commandc C s | j d� d S )Nzpre-install)r )r r r r �resolved! s zEtckeeper.resolvedc C s | j d� d S )Nzpost-install)r )r r r r �transaction$ s zEtckeeper.transactionN)�__name__� __module__�__qualname__�namer r r r r r r r s r �__main__)�setupz dnf-etckeeperzdnf-pluginsz etckeeper-dnf)r ZpackagesZpackage_dir) Zloggingr r Z getLoggerr ZPluginr r Zdistutils.corer r r r r �<module> s