/usr/lib/python3.9/site-packages/dnf/cli/__pycache__
NameSizeModeActions
aliases.cpython-39.opt-1.pyc54920644editdlrm
aliases.cpython-39.pyc54920644editdlrm
cli.cpython-39.opt-1.pyc331390644editdlrm
cli.cpython-39.pyc332010644editdlrm
completion_helper.cpython-39.opt-1.pyc84320644editdlrm
completion_helper.cpython-39.pyc84320644editdlrm
demand.cpython-39.opt-1.pyc15970644editdlrm
demand.cpython-39.pyc15970644editdlrm
format.cpython-39.opt-1.pyc23610644editdlrm
format.cpython-39.pyc23610644editdlrm
main.cpython-39.opt-1.pyc54430644editdlrm
main.cpython-39.pyc54430644editdlrm
option_parser.cpython-39.opt-1.pyc175290644editdlrm
option_parser.cpython-39.pyc175290644editdlrm
output.cpython-39.opt-1.pyc572830644editdlrm
output.cpython-39.pyc573530644editdlrm
progress.cpython-39.opt-1.pyc46690644editdlrm
progress.cpython-39.pyc46690644editdlrm
term.cpython-39.opt-1.pyc118010644editdlrm
term.cpython-39.pyc118220644editdlrm
utils.cpython-39.opt-1.pyc32500644editdlrm
utils.cpython-39.pyc32500644editdlrm
__init__.cpython-39.opt-1.pyc5270644editdlrm
__init__.cpython-39.pyc5270644editdlrm
Edit: /usr/lib/python3.9/site-packages/dnf/cli/__pycache__/main.cpython-39.pyc (5443B)
a ©!cfã@sPdZddlmZddlmZddlmZddlmZddlmZddl m Z ddl m Z dd l mZdd l mZdd lZdd lZdd l Zdd lZdd l Zdd lZdd lZdd lZdd lZdd lZdd lZdd lZdd lZdd lZe d ¡Zd d„Zdd„Z eee fdd„Z!dd„Z"dd„Z#dd„Z$d dd„Z%e&dk�rLe%ej'dd …dd�d S)!z4 Entrance point for the yum command line interface. é)Úprint_function)Úabsolute_import)Úunicode_literals)ÚConf)ÚCli)Ú OptionParser)Úucd)Úshow_lock_owner)Ú_NÚdnfcCs&tjtjjddd�t t|ƒ¡dS)NÚT©Úexc_infoé)ÚloggerÚlogr ÚloggingÚSUBDEBUGÚcriticalr©Úe©rú0/usr/lib/python3.9/site-packages/dnf/cli/main.pyÚ ex_IOError2srcCs6tjtjjddd�|jdur2t tdƒt|ƒ¡dS)Nr Tr ú Error: %sr) rrr rrÚvaluerr rrrrrÚex_Error8s rc Cs zPtj ¡tjj |ƒ¡� }t||||ƒWdƒWS1sB0YW�n¶tjjy�}z$t  |j ¡t |j ƒWYd}~dSd}~0tjj yÄ}zt  |j ¡WYd}~dSd}~0tjj�yî}zWYd}~dSd}~0tjj�y}zt|ƒWYd}~Sd}~0tj�yZ}z"t  tdƒt|ƒ¡WYd}~dSd}~0tjj�y˜}z"t  tdƒt|ƒ¡WYd}~dSd}~0t�yÄ}zt|ƒWYd}~Sd}~0t�y}z*t  d t|ƒjtdƒ¡¡WYd}~dSd}~00dS)NéÈrrz{}: {}z Terminated.)r Zi18nZ setup_stdoutÚcliZBaseCliÚ_mainÚ exceptionsZProcessLockErrorrrrr ÚpidÚ LockErrorÚ DepsolveErrorÚErrorrÚhawkeyÚ Exceptionr rÚlibdnfÚerrorÚIOErrorrÚKeyboardInterruptÚformatÚtypeÚ__name__)ÚargsZ conf_classÚ cli_classZoption_parser_classÚbaserrrrÚmain?s4 4   r1c Csj|j ¡||ƒ}z| ttt|ƒƒ|ƒ¡Wn0ttfy^}zt|ƒWYd}~Sd}~00t ||ƒS)z2Run the dnf program from a command line interface.N) Z_loggingZ _presetupZ configureÚlistÚmaprr)ÚOSErrorrÚcli_run)r0r.r/Z option_parserrrrrrr\s rc Csðz tdƒ}WnHtyT}z0|jtjkr@t tdƒ¡t d¡WYd}~nd}~00|  ¡z |  ¡WnFt j j y‚‚Yn0ttfy°}zt|ƒWYd}~Sd}~00|jj�rÞzt||ƒ}W�nt j j�yÒ}zèt|ƒd}|jj�s|jjdd��r|tdƒ d¡7}|jjj�rR|�s@|td ƒ d ¡7}n|td ƒ d ¡7}|jjj�r¦|jj d ¡}|t jjk�r¦|�s”|td ƒ d¡7}n|tdƒ d¡7}|�r¼t d |¡¡‚WYd}~n d}~00|�rÞ|S|j  ¡|jj!S)NÚ.z8No read/execute access in current directory, moving to /ú/r T)Z availablez?try to add '{}' to command line to replace conflicting packagesz--allowerasingz.try to add '{}' to skip uninstallable packagesz --skip-brokenz' or '{}' to skip uninstallable packagesÚbestz7try to add '{}' to use not only best candidate packagesz--nobestz0 or '{}' to use not only best candidate packagesz({}))"Úopenr)ÚerrnoZEACCESrrr ÚosÚchdirÚcloseÚrunr r r"r4rÚdemandsÚ resolvingr#rÚ allow_erasingZ_goalZproblem_conflictsr+r0ZconfÚstrictr8Z _get_priorityZPRIO_MAINCONFIGÚinfoÚcommandZrun_transactionZsuccess_exit_status)rr0ÚfrÚretÚmsgZpriorrrr5ms\      ÿ  ÿ  ÿ ÿ r5c Cs|jdur&| |jj¡t tdƒ¡|j ¡g}|jj durN|  |jj ¡z|j |d�Wn¨t j jy–}zt t|ƒ¡WYd}~dSd}~0t jjyÚ}z*|j |¡D]}t |¡q´WYd}~dSd}~0t�y}zt|ƒWYd}~Sd}~00t tdƒ¡dS)z9Perform the depsolve, download and RPM transaction stage.NzDependencies resolved.)Zdisplayrz Complete!r)Z transactionÚresolver?rArrCr rDZ run_resolvedZtransaction_displayÚappendZdo_transactionr rZCliErrorr(rr ZTransactionCheckErrorZget_error_outputrr)r)rr0ZdisplaysÚexcÚerrrGrrrrr@¢s(    r@FcCst|ƒ}|rt |¡|S)apCall one of the multiple main() functions based on environment variables. :param args: command line arguments passed into yum :param exit_code: if *exit_code* is True, this function will exit python with its exit code when it has finished executing. Otherwise, it will return its exit code. :return: the exit code from dnf.yum execution )r1ÚsysÚexit)r.Ú exit_codeZerrcoderrrÚ user_main¿s  rOÚ__main__rT)rN)F)(Ú__doc__Z __future__rrrZdnf.confrZ dnf.cli.clirZdnf.cli.option_parserrZdnf.i18nrZ dnf.cli.utilsr r Zdnf.clir Zdnf.exceptionsZ dnf.loggingZdnf.utilr:r%Z libdnf.errorr'rr;Zos.pathrLZ getLoggerrrrr1rr5r@rOr-ÚargvrrrrÚsB          5