Edit File: main.cpython-36.opt-1.pyc
3 �ft`f������������������@���sP��d�Z�ddlmZ�ddlmZ�ddlmZ�ddlmZ�ddlmZ�ddl m Z �ddlmZ�dd l mZ�dd lmZ�ddlZddlZddl ZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZejd�Zd d��Zdd��Z eee fdd�Z!dd��Z"dd��Z#dd��Z$d dd�Z%e&dk�rLe%ej'dd��dd��dS�)!z4 Entrance point for the yum command line interface. �����)�print_function)�absolute_import)�unicode_literals)�Conf)�Cli)�OptionParser)�ucd)�show_lock_owner)�_N�dnfc�������������C���s&���t�jtjjddd��t�jt|����dS�)N��T)�exc_info����)�logger�logr����logging�SUBDEBUG�criticalr���)�e��r����/usr/lib/python3.6/main.py� ex_IOError2���s����r���c�������������C���s6���t�jtjjddd��|�jd�k r2t�jtd�t|����dS�)Nr���T)r ���z Error: %sr���) r���r���r���r���r����valuer���r ���r���)r���r���r���r����ex_Error8���s���� r���c�������������C���s���y6t�jj���t�jjj|����}t||�||�S�Q�R�X�W��n��t�jjk rr�}�ztj |j ��t|j��dS�d�}~X��nL�t�jj k r��}�ztj |j ��dS�d�}~X��n�t�jjk r��}�zdS�d�}~X���n��t�jjk ��r��}�zt|�S�d�}~X�n��tjk �r$�}�ztj td�t|���dS�d�}~X�n��tjjk �r\�}�ztj td�t|���dS�d�}~X�nb�tk �r��}�zt|�S�d�}~X�n>�tk �r��}�z tj djt|�jtd����dS�d�}~X�nX�d�S�)N�����r���z Error: %sz{}: {}zTerminated.)r���Zi18nZsetup_stdout�cliZBaseCli�_main� exceptionsZProcessLockErrorr���r���r���r ����pid� LockError� DepsolveError�Errorr����hawkey� Exceptionr ���r����libdnf�error�IOErrorr����KeyboardInterrupt�format�type�__name__)�argsZ conf_class� cli_classZoption_parser_class�baser���r���r���r����main?���s4���� r.���c�������������C���sb���|�j�j���||��}y|jttt|��|����W�n(�ttfk rV�}�zt|�S�d}~X�nX�t ||��S�)z2Run the dnf program from a command line interface.N) Z_loggingZ _presetupZ configure�list�mapr���r&����OSErrorr����cli_run)r-���r+���r,���Z option_parserr���r���r���r���r���r���\���s���� r���c����������,���C���s���yt�d�}W�nF�tk rR�}�z*|jtjkrBtjtd���tjd��W�Y�d�d�}~X�n X�|j ���y|�j ���W�n@�tjj k r������Y�n(�ttfk r��}�zt|�S�d�}~X�nX�|�jj�r�yt|�|�}W��n�tjjk �r��}�z�t|��d}|�jj��r|jjdd��r|td�jd�7�}|�jjj�rN|�s<|td �jd �7�}n|td�jd �7�}|�jjj�r�|�jjjd�}|tjjk�r�|�s�|td �jd�7�}n|td�jd�7�}|�r�tjdj|�����W�Y�d�d�}~X�nX�|�r�|S�|�jj ���|�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&����errnoZEACCESr���r���r ����os�chdir�closeZrunr���r���r���r1���r����demands� resolvingr ���r���� allow_erasingZ_goalZproblem_conflictsr(���r-���Zconf�strictr5���Z _get_priorityZPRIO_MAINCONFIG�info�commandZrun_transactionZsuccess_exit_status)r���r-����fr����ret�msgZprior���r���r���r2���m���sT���� r2���c�������������C���s ��|j�dkr&|j|�jj��tjtd���|�jj���g�}|�jj dk rN|j |�jj ��y|j|d��W�n��tj jk r��}�ztjt|���dS�d}~X�nv�tjjk r��}�z$x|�jj|�D�]}tj|��q�W�dS�d}~X�n4�tk ��r��}�zt|�S�d}~X�nX�tjtd���dS�)z9Perform the depsolve, download and RPM transaction stage.NzDependencies resolved.)Zdisplayr���z Complete!r���)ZtransactionZresolver;���r=���r���r?���r ���r@���Zrun_resolvedZtransaction_display�appendZdo_transactionr���r���ZCliErrorr%���r���r���ZTransactionCheckErrorZget_error_outputr���r&���r���)r���r-���Zdisplays�exc�errrC���r���r���r���r���r<�������s(���� r<���Fc�������������C���s���t�|��}|rtj|��|S�)ap��Call 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 )r.����sys�exit)r+���� exit_codeZerrcoder���r���r���� user_main����s���� rJ����__main__r���T)rI���)F)(�__doc__Z __future__r���r���r���Zdnf.confr���Zdnf.cli.clir���Zdnf.cli.option_parserr���Zdnf.i18nr���Z dnf.cli.utilsr ���r ���Zdnf.clir���Zdnf.exceptionsZdnf.loggingZdnf.utilr7���r"���Zlibdnf.errorr$���r���r8���Zos.pathrG���Z getLoggerr���r���r���r.���r���r2���r<���rJ���r*����argvr���r���r���r����<module>���sB��� 5