�
�[/\c @@ sx d d l m Z d d l m Z d d l m Z d d l m Z d d l Z e j d � Z d e j
f d � � YZ d S( i ( t absolute_import( t unicode_literals( t _( t commandsNu dnft SwapCommandc B@ sJ e Z d Z d Z e d � Z e d � � Z d � Z d � Z d � Z
RS( uN A class containing methods needed by the cli to execute the swap command.
u swapu: run an interactive dnf mod for remove and install one specc C@ sB | j d d d d t d � �| j d d d d t d � �d S( Nu remove_spect actionu storet helpu The specs that will be removedu install_specu The specs that will be installed( t add_argumentR ( t parser( ( s9 /usr/lib/python2.7/site-packages/dnf/cli/commands/swap.pyt
set_argparser# s c C@ sf | j j } t | _ t | _ t | _ t | _ t j | j | j � t j
| j | j j g � d S( N(
t clit demandst Truet sack_activationt available_repost resolvingt root_userR t _checkGPGKeyt baset _checkEnabledRepot optst install_spec( t selfR ( ( s9 /usr/lib/python2.7/site-packages/dnf/cli/commands/swap.pyt configure) s c C@ s] | j j j | � } | d k rY | | j � } | j j j | | | g � | j � n d S( N( R
t cli_commandst gett Nonet optparsert parse_command_argst run( R t cmd_strt spect cmd_clst cmd( ( s9 /usr/lib/python2.7/site-packages/dnf/cli/commands/swap.pyt _perform2 s
c C@ s0 | j d | j j � | j d | j j � d S( Nu removeu install( R"