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&