3 ©ft`Ÿã@s:ddlmZddlmZddlmZGdd„dejƒZdS)é)Úabsolute_import)Úcommands)Ú_c@s8eZdZdZdZedƒZedd„ƒZd d „Z d d „Z d S)ÚDistroSyncCommandzZA class containing methods needed by the cli to execute the distro-synch command. ú distro-syncÚ distrosyncúdistribution-synchronizationÚdsyncz?synchronize installed packages to the latest available versionscCs|jddtdƒd�dS)NÚpackageÚ*zPackage to synchronize)ÚnargsÚhelp)Ú add_argumentr)Úparser©rú /usr/lib/python3.6/distrosync.pyÚ set_argparser"szDistroSyncCommand.set_argparsercCsF|jj}d|_d|_d|_d|_tj|j|jƒtj |j|j j ƒdS)NT) ZcliÚdemandsZsack_activationZavailable_reposZ resolvingZ root_userrZ _checkGPGKeyÚbaseZ_checkEnabledRepoÚoptsr )ÚselfrrrrÚ configure&szDistroSyncCommand.configurecCs|jj|jjƒS)N)rZdistro_sync_userlistrr )rrrrÚrun/szDistroSyncCommand.runN)rrrr ) Ú__name__Ú __module__Ú __qualname__Ú__doc__ÚaliasesrZsummaryÚ staticmethodrrrrrrrrs   rN)Z __future__rZdnf.clirZdnf.i18nrZCommandrrrrrÚs