VULN_CHECK_I913V6 (fddlmZddlmZddlZddlZddlZddlZddlm Z ddl m Z ddl m Z ejdZGdd e j Zy) )absolute_import)unicode_literalsN)commands) OptionParser)_dnfcXeZdZdZdZedZedZdZ dZ dZ dZ d Z d Zy ) UpgradeCommandzTA class containing methods needed by the cli to execute the update command. )upgradeupdatez upgrade-toz update-to localupdateupz,upgrade a package or packages on your systemc p|jddtdtjtdy)Npackages*zPackage to upgradePACKAGE)nargshelpactionmetavar) add_argumentrrParseSpecGroupFileCallback)parsers =/usr/lib/python3.12/site-packages/dnf/cli/commands/upgrade.py set_argparserzUpgradeCommand.set_argparser+s1Jc:N8O#/#J#J$%iL  2c |jj}d|_d|_d|_d|_t jj|jjr*|jjxjdgz c_ tj|j|j|jj stj"|jd|_d|_d|_y)zVerify that conditions are met so that this command can run. These include that there are enabled repositories with gpg keys, and that this command is being run by the root user. T filelistsN)clidemandssack_activationavailable_repos resolving root_userrutil_is_file_pattern_presentopts pkg_specsbaseconfoptional_metadata_typesr _checkGPGKey filenames_checkEnabledRepoupgrade_minimal all_securityskipped_grp_specs)selfr s r configurezUpgradeCommand.configure1s (("""&"&   88 , ,TYY-@-@ A IINN 2 2{m C 2dii2yy""  & &tyy 1# !%rc2|jrdnd}|jj|j||j|jj s,|jj s|jjrQd}||jz}||jz}||jz}||jz}|ry|jjytjj!t#d)Neqgte)cmp_typeallFzNo packages marked for upgrade.)r/r _populate_update_security_filterr'r0r-r( grp_specs_update_modules _update_files_update_packages_update_groupsr) upgrade_allr exceptionsErrorr)r2r7results rrunzUpgradeCommand.runGs//4U 11$))h6:6G6G 2 I 99  $))"5"59L9LF d**, ,F d((* *F d++- -F d))+ +F II ! ! # nn""1%F#GHHrct|jj}tjj r^tj jj|j}|j|jj|_ n|jj|_ t|j|k7S)N) lenr'r:rr) WITH_MODULESmodule module_base ModuleBaser r1)r2group_specs_numrHs rr;zUpgradeCommand._update_modules[sdii112 88 **00;;DIIFK%0%8%89L9L%MD "%)YY%8%8D "4))*o==rcd}|jjrs|jj|jjd|jjj D] } |jj |d}"|S#tjj$r`}tjtd|jjjj|jYd}~d}~wwxYw)NF)strictprogressTNo match for argument: %s)r'r-r)add_remote_rpmsoutputrMpackage_upgraderr@ MarkingErrorloggerinfortermboldlocation)r2successpkges rr<zUpgradeCommand._update_fileses 99  yy001D1DU:>)):J:J:S:S1UJII--c2"G U~~22JKK"= > $ 0 0 5 5 : :3<< HJJJs-BD +ADD chd}|jjD] } |jj|d}"|S#tj j $rV}tjtd|jjjj|Yd}~d}~wwxYw)NFTrN) r'r(r)r rr@rRrSrTrrPrUrV)r2rXpkg_specrZs rr=zUpgradeCommand._update_packagesrs ++H B !!(+,>>.. B A9: II,,1166x@BB Bs>B1A B,,B1ch|jr&|jj|jyy)NTF)r1r)env_group_upgrade)r2s rr>zUpgradeCommand._update_groups}s)  ! ! II ' '(>(> ?rN)__name__ __module__ __qualname____doc__aliasesrsummary staticmethodrr3rCr;r<r=r>rrr r $sKTG>?G22 &,I(>  rr ) __future__rrloggingdnf.exceptionsrdnf.basednf.utildnf.clirdnf.cli.option_parserrdnf.i18nr getLoggerrSCommandr rfrrrqsH*''.   5 !]X%%]r