관리-도구
편집 파일: config_manager.cpython-39.pyc
a �&c�* � @ s� d dl mZ d dl mZ d dlmZmZmZ d dlZd dlZd dl Zd dl Zd dlZd dlZd dl Z d dlZd dlZejjG dd� dejj��Zdd� Ze�d �Ze�d �Ze�d�Ze�d�Zd d� ZdS )� )�absolute_import)�unicode_literals)�_�logger�P_Nc @ sR e Zd ZdgZed�jejjd�Z e dd� �Zdd� Zdd � Z d d� Zdd � ZdS )�ConfigManagerCommandzconfig-managerz4manage {prog} configuration options and repositories)�progc C s� | j dddtd�d� | j dddtd �d � | j dg dd td�d� | j dddtd�d � | j dddtd�d � | �� }|j ddddtd�d� |j ddddtd�d� d S )N�crepo�*�repozrepo to modify)�nargs�metavar�help�--saveF� store_truez/save the current options (useful with --setopt))�default�actionr � --add-repo�appendZURLz8add (and enable) the repo from the specified file or url)r r r r �--dumpz,print current configuration values to stdout�--dump-variableszprint variable values to stdout� --set-enabled�set_enabledz"enable repos (automatically saves))r �destr r �--set-disabled�set_disabledz#disable repos (automatically saves))�add_argumentr �add_mutually_exclusive_group)�parserZenable_group� r �>/usr/lib/python3.9/site-packages/dnf-plugins/config_manager.py� set_argparser) s: �������z"ConfigManagerCommand.set_argparserc C s� | j j}d|_| jjg ksd| jjsd| jjsd| jjsd| jjsd| jj sd| j j �td�� d�g d���� | jjg kr~t�td�� | jjs�| jj s�| jjs�| jjr�d|_dd� | jjD �}dd� |D �| j_d S ) NTz.one of the following arguments is required: {}� )r r r r r z--enabler z --disablez{Warning: --enablerepo/--disablerepo arguments have no meaningwith config manager. Use --set-enabled/--set-disabled instead.c S s g | ]}|d kr|� d ��qS )�,)�split)�.0�xr r r � <listcomp>_ � z2ConfigManagerCommand.configure.<locals>.<listcomp>c S s"