VULN_CHECK_I913V6 (f]ddlmZddlmZddlmZddlmZddlmZddl Z ddl Z e jdZ Gdd ejZy) )absolute_import)unicode_literals)commands) OptionParser)_Ndnfc@eZdZdZdZedZedZdZ dZ y)ReinstallCommandzSA class containing methods needed by the cli to execute the reinstall command. ) reinstallreizreinstall a packagec p|jddtdtjtdy)Npackages+zPackage to reinstallPACKAGE)nargshelpactionmetavar) add_argumentrrParseSpecGroupFileCallback)parsers ?/usr/lib/python3.12/site-packages/dnf/cli/commands/reinstall.py set_argparserzReinstallCommand.set_argparser(s1Jc:P8Q#/#J#J$%iL  2c(|jj}d|_d|_d|_d|_t j|j|j|jjs t j|jyy)a Verify that conditions are met so that this command can run. These include that the program is being run by the root user, that there are enabled repositories with gpg keys, and that this command is called with appropriate arguments. TN) clidemandssack_activationavailable_repos resolving root_userr _checkGPGKeybaseopts filenames_checkEnabledRepo)selfrs r configurezReinstallCommand.configure.so (("""&"&  dii2yy""  & &tyy 1#rc ld}|jj|jjd|jjj D] } |jj |d}"|jj |jj"Dcgc]}d|z c}zD] } |jj%|d}"|s(tjj3td y#tjj$rZtjtd|jjjj|jY%wxYwcc}w#tjj&$r}|j(D]O}tjtd|jjj|j*ntjtd|jjjj|Yd}~d}~wtjj,$r}|j(D]}d}|jj.j1|}|rtd|z}td }tj||jjjj||Yd}~Wd}~wtjj$rJd wxYw) NF)strictprogressTzNo match for argument: %s@z(Package %s available, but not installed.z (from %s)z%Installed package %s%s not available.z+Only the above marking errors are expected.z!No packages marked for reinstall.)r#add_remote_rpmsr$r%outputr+package_reinstallr exceptions MarkingErrorloggerinfortermboldlocation pkg_specs grp_specsr PackagesNotInstalledErrorrnamePackagesNotAvailableErrorhistoryrepoError) r'donepkgxpkg_specerrxmsgpkgrepomsgs rrunzReinstallCommand.run=s99,,TYY-@-@6:ii6F6F6O6O-QC  ++C0 Q ++ @S@S.T@S1sQw@S.TTH  ##H-(-U0..&&q)L'MN N?>>.. F A9: II,,1166s||DF F/U>>;; B<>;; &<>.. LKKKu Ls?D# E<8FA3E98E9L3B*I L3.BL  (L3N) __name__ __module__ __qualname____doc__aliasesrsummary staticmethodrr(rHrrr r !s6#G%&G22 2(Orr ) __future__rrdnf.clirdnf.cli.option_parserrdnf.i18nrdnf.exceptionsrlogging getLoggerr3Commandr rPrrrYsD*''.   5 !DOx''DOr