3 ft` @stddlmZddlmZddlmZddlmZddlmZddl Z ddl Z ddl Z e j dZGdd d ejZdS) )absolute_import)unicode_literals)commands) OptionParser)_Ndnfc@sReZdZejejejdZd eej Z e dZ e ddZddZdd Zd S) AutoremoveCommand)z autoremove-nz autoremove-nazautoremove-nevra autoremovezKremove all unneeded packages that were originally installed as dependenciescCs"|jddtdtjtdddS)NZpackages*zPackage to removeZPACKAGE)nargshelpactionmetavar) add_argumentrrZParseSpecGroupFileCallback)parserr /usr/lib/python3.6/autoremove.py set_argparser,szAutoremoveCommand.set_argparsercCs\|jj}d|_d|_d|_t|jj|jj|jj grLd|j j _ d|_ d|_n d|_d|_dS)NTF)ZclidemandsZ resolvingZ root_userZsack_activationanyopts grp_specs pkg_specs filenamesbaseZconfZclean_requirements_on_removeZ allow_erasingZavailable_reposZfresh_metadata)selfrrrr configure2s zAutoremoveCommand.configurecCsjt|jj|jj|jjgr\g}|jj|jkr<|j|jjg}|jj||jj|jj|jjn |jjdS)N) rrrrrZcommand nevra_formsrr )rZformsrrrrunBs zAutoremoveCommand.runN)r )__name__ __module__ __qualname__hawkeyZ FORM_NAMEZFORM_NAZ FORM_NEVRArtuplekeysaliasesrZsummary staticmethodrrrrrrrr"s  r)Z __future__rrZdnf.clirZdnf.cli.option_parserrZdnf.i18nrZdnf.exceptionsrr"ZloggingZ getLoggerZloggerZCommandrrrrrs