Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 ©ft`s ã@s`ddlmZddlmZddlmZddlmZddlZddl Z e j dƒZ Gdd„dej ƒZ dS) é)Úabsolute_import)Úunicode_literals)Ú_)ÚcommandsNÚdnfc@sLeZdZdZdZedƒjejj d�Z e dd„ƒZ dd„Z d d „Zd d „Zd S)Ú SwapCommandzNA class containing methods needed by the cli to execute the swap command. Úswapz=run an interactive {prog} mod for remove and install one spec)ÚprogcCs,|jddtdƒd�|jddtdƒd�dS)NÚ remove_specZstorezThe specs that will be removed)ÚactionÚhelpÚ install_specz The specs that will be installed)Ú add_argumentr)Úparser©rú/usr/lib/python3.6/swap.pyÚ set_argparser&s zSwapCommand.set_argparsercCsH|jj}d|_d|_d|_d|_tj|j|jƒtj |j|j j gƒdS)NT) ÚcliÚdemandsZsack_activationZavailable_reposZ resolvingZ root_userrZ _checkGPGKeyÚbaseZ_checkEnabledRepoÚoptsr )ÚselfrrrrÚ configure,szSwapCommand.configurecCs@|jjj|ƒ}|dk r<||jƒ}|jjj|||gƒ|jƒdS)N)rZ cli_commandsÚgetZ optparserZparse_command_argsÚrun)rZcmd_strÚspecZcmd_clsÚcmdrrrÚ_perform5s  zSwapCommand._performcCs$|jd|jjƒ|jd|jjƒdS)NÚremoveZinstall)rrr r )rrrrr<szSwapCommand.runN)r)Ú__name__Ú __module__Ú __qualname__Ú__doc__ÚaliasesrÚformatrÚutilZMAIN_PROG_UPPERZsummaryÚ staticmethodrrrrrrrrrs   r)Z __future__rrZdnf.i18nrZdnf.clirZdnf.utilrZloggingZ getLoggerZloggerZCommandrrrrrÚs