Your IP : 3.145.32.238
3
�ft` � @ sR d dl mZ d dl mZ d dlmZ d dlmZ d dlmZ G dd� dej �Z
dS ) � )�absolute_import)�unicode_literals)�commands)�OptionParser)�_c @ s8 e Zd ZdZdZed�Zedd� �Zdd� Z d d
� Z
dS )
�DowngradeCommandzWA class containing methods needed by the cli to execute the
downgrade command.
� downgrade�dgzDowngrade a packagec C s | j ddtd�tjd� d S )N�package�*zPackage to downgrade)�nargs�help�action)�add_argumentr r ZParseSpecGroupFileCallback)�parser� r �/usr/lib/python3.6/downgrade.py�
set_argparser$ s zDowngradeCommand.set_argparserc C sH | j j}d|_d|_d|_d|_tj| j| j � | j j
sDtj| j� d S )NT)Zcli�demandsZsack_activationZavailable_reposZ resolvingZ root_userr Z_checkGPGKey�base�opts� filenamesZ_checkEnabledRepo)�selfr r r r � configure) s zDowngradeCommand.configurec C sJ | j j| jjd| j jjd�}| j j| jjdd� | jjD � || j j j
d�S )NF)�strict�progressc S s g | ]}d | �qS )�@r )�.0�xr r r �
<listcomp>8 s z(DowngradeCommand.run.<locals>.<listcomp>)Zspecs� file_pkgsr )r Zadd_remote_rpmsr r �outputr Z
downgradePkgsZ pkg_specsZ grp_specsZconfr )r r r r r �run4 s zDowngradeCommand.runN)r r )�__name__�
__module__�__qualname__�__doc__�aliasesr Zsummary�staticmethodr r r"