ó ¾[/\c@@sxddlmZddlmZddlmZddlmZddlZejdƒZ dej fd„ƒYZ dS( i(tabsolute_import(tunicode_literals(t_(tcommandsNudnft SwapCommandcB@sJeZdZdZedƒZed„ƒZd„Zd„Z d„Z RS(uNA class containing methods needed by the cli to execute the swap command. uswapu:run an interactive dnf mod for remove and install one speccC@sB|jddddtdƒƒ|jddddtdƒƒdS(Nu remove_spectactionustorethelpuThe specs that will be removedu install_specu The specs that will be installed(t add_argumentR(tparser((s9/usr/lib/python2.7/site-packages/dnf/cli/commands/swap.pyt set_argparser#scC@sf|jj}t|_t|_t|_t|_tj|j |jƒtj |j |j j gƒdS(N( tclitdemandstTruetsack_activationtavailable_repost resolvingt root_userRt _checkGPGKeytbaset_checkEnabledRepotoptst install_spec(tselfR ((s9/usr/lib/python2.7/site-packages/dnf/cli/commands/swap.pyt configure)s     cC@s]|jjj|ƒ}|dk rY||jƒ}|jjj|||gƒ|jƒndS(N(R t cli_commandstgettNonet optparsertparse_command_argstrun(Rtcmd_strtspectcmd_clstcmd((s9/usr/lib/python2.7/site-packages/dnf/cli/commands/swap.pyt_perform2s  cC@s0|jd|jjƒ|jd|jjƒdS(Nuremoveuinstall(R"Rt remove_specR(R((s9/usr/lib/python2.7/site-packages/dnf/cli/commands/swap.pyR9s(uswap( t__name__t __module__t__doc__taliasesRtsummaryt staticmethodR RR"R(((s9/usr/lib/python2.7/site-packages/dnf/cli/commands/swap.pyRs  ( t __future__RRtdnf.i18nRtdnf.cliRtloggingt getLoggertloggertCommandR(((s9/usr/lib/python2.7/site-packages/dnf/cli/commands/swap.pyts