D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
lib
/
python3.6
/
site-packages
/
dnf
/
cli
/
commands
/
__pycache__
/
Filename :
group.cpython-36.pyc
back
Copy
3 ��g�: � @ s� d dl mZ d dl mZ d dlmZ d dlmZ d dlmZm Z d dl Zd dlZd dl Zd dlZd dlZejd�ZG dd � d ej�ZdS ) � )�absolute_import)�unicode_literals)� CompsQuery)�commands)�_�ucdN�dnfc s� e Zd ZdZddddddd�Zd-eej� � Zed �Z ddd�Z d.Zd/Zdd� Z � fdd�Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zed%d&� �Zd'd(� Zd)d*� Zd+d,� Z� ZS )0�GroupCommandz; Single sub-command interface for most groups interaction. �list�install�remove�info)Z grouplistZgroupinstallZgroupupdateZgroupremoveZ grouperaseZ groupinfo�group�groups�grpz'display, or use, the groups information�upgrade)�updateZerase�summary�markc C sn | j j| jj�}|r<| jjd k r4| jjjd| jj� || j_| jjd krPd| j_| jj| jj| jj�| j_d S )Nr r )�direct_commands�get�optsZcommand�subcmd�args�insert�_CMD_ALIASES)�selfZdirect� r �/usr/lib/python3.6/group.py� _canonical6 s zGroupCommand._canonicalc s t t| �j|� d| _d S )NF)�superr �__init__�_remark)r �cli)� __class__r r r! C s zGroupCommand.__init__c C s$ t d�}t| jj�s tjj|��d S )Nz4No group data available for configured repositories.)r �len�base�compsr � exceptionsZ CompsError)r �msgr r r � _assert_compsG s zGroupCommand._assert_compsc sT � fdd�}� j � |d kr(� jjj}n� jjjdj|��}tjjt tjj ||��S )Nc s � j jjj| j�}| S )N)r&