. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 162.0.212.4 / Your IP :
216.73.216.14 [
Web Server : LiteSpeed System : Linux premium146.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : alshnoli ( 2431) PHP Version : 8.3.28 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /lib/python3.6/site-packages/dnf-plugins/__pycache__/ |
Upload File : |
3
�gt`1 � @ s� d dl mZ d dl mZ d dlmZ d dlmZmZ d dlZd dl Zd dl
Z
d dlZd dlZd dl
Z
d dlZd dlZdZG dd� dej�ZG d d
� d
ejj�ZG dd� dejj�Zd
d� Zdd� Zdd� ZdS )� )�absolute_import)�unicode_literals)�ucd)�_�loggerNzdnf-debug-dump version 1
c s e Zd ZdZ� fdd�Z� ZS )�Debug�debugc sD t t| �j||� || _|| _| jd k r@| jjt� | jjt� d S )N)�superr �__init__�base�cliZregister_command�DebugDumpCommand�DebugRestoreCommand)�selfr r )� __class__� �/usr/lib/python3.6/debug.pyr
) s
zDebug.__init__)�__name__�
__module__�__qualname__�namer
�
__classcell__r r )r r r % s r c st e Zd ZdZed�Z� fdd�Zdd� Zedd� �Z d d
� Z
dd� Zd
d� Zdd� Z
dd� Zdd� Zdd� Z� ZS )r
�
debug-dumpz5dump information about installed rpm packages to filec s t t| �j|� d | _d S )N)r r
r
� dump_file)r r )r r r r
7 s zDebugDumpCommand.__init__c C s d| j j_d| j j_d S )NT)r �demands�sack_activation�available_repos)r r r r � configure; s
zDebugDumpCommand.configurec C s. | j dddtd�d� | j ddtd�d � d S )
Nz --norepos�
store_trueFz/do not attempt to dump the repository contents.)�action�default�help�filename�?zoptional name of dump file)�nargsr! )�add_argumentr )�parserr r r �
set_argparser? s zDebugDumpCommand.set_argparserc C s� | j j}|s6tjdtjtj� ��}dtj� d |f }tjj|�}|j d�r\t
j|d�| _nt
|d�| _| jt� | j� | j� | j� | j| j j � | j� | jj� ttd�| � dS )z{create debug txt file and compress it, if no filename specified
use dnf_debug_dump-<timestamp>.txt.gz by defaultz%Y-%m-%d_%Tzdnf_debug_dump-%s-%s.txt.gz� z.gz�wzOutput written to: %sN)�optsr"