| Server IP : 146.190.157.162 / Your IP : 216.73.217.110 Web Server : Apache System : Linux ubuntu-s-2vcpu-4gb-amd-sfo3-01-KIT-DIGITAL 6.5.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:10:09 UTC 2024 x86_64 User : businessweek ( 639) PHP Version : 8.2.10-2ubuntu2.2 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_signal,pcntl_signal_dispatch,pcntl_getpriority,pcntl_setpriority,dl,putenv,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/apport/__pycache__/ |
Upload File : |
�
�$e� � � � d Z ddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZddl
Z
ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlmZ ddlZddlZddl Z ddl!m"Z" ddl#m$Z% ddl&m'Z'm(Z( e j) �* dd� � Z+e+� d �Z,e+� d
�Z-dZ.e j) �* dd
� � Z/dZ0dZ1dZ2dZ3g d�Z4d� Z5de6dej7 e6 fd�Z8d(d�Z9d(d�Z:d� Z; d)de<e6 dee=e6e6f de>de6fd�Z?d� Z@d � ZAd!� ZBd"� ZCd#� ZD G d$� d%e=e6e6f � � ZE G d&� d'e jF � � ZGdS )*z;Representation of and data collection for a problem report.� N)�Optional)�kill_pkttyagent)�impl)�HookUI�NoninteractiveHookUI�APPORT_DATA_DIRz/usr/share/apportz/general-hooks/z/package-hooks/z/opt�APPORT_IGNORE_FILEz~/.apport-ignore.xmlz/etc/apport/report-ignorez/etc/apport/report-onlyz/etc/apport/blacklist.dz/etc/apport/whitelist.d)�sh�bash�dash�csh�tcshzpython*zruby*�phpzperl*zmono*�awkc �� � t j | � � n# t $ r Y dS w xY wt j | � � D ]+}||vr%|� |� � t ||� � �,dS )z7Recursively add dependencies of package to depends_set.N)� packaging�get_version�
ValueError�get_dependencies�add�_transitive_dependencies)�package�depends_set�ds �//usr/lib/python3/dist-packages/apport/report.pyr r S s� � ����g�&�&�&�&��� � � ��������
�
'��
0�
0� 5� 5���K����O�O�A����$�Q��4�4�4��5� 5s � �
%�%� directory�returnc # �6 K � t j | � � � � � D ]]} |� d�� � 5 }|D ]}|� � � V � � ddd� � n# 1 swxY w Y �N# t
$ r Y �Zw xY wdS # t
$ r Y dS w xY w)z?Read every file in the directory and return each stripped line.�utf-8��encodingN)�pathlib�Path�iterdir�open�strip�OSError)r � list_file�fd�lines r �_read_list_files_in_directoryr+ _ s � � � �
� ��i�0�0�8�8�:�:� � �I�
��^�^�W�^�5�5� +�� "� +� +��"�j�j�l�l�*�*�*�*�+�+� +� +� +� +� +� +� +� +� +� +���� +� +� +� +��� �
�
�
���
���� � �� �
�
�
����
���sX �(B
�A8�A,� A8�,A0 �0A8�3A0 �4A8�7B
�8
B�B
�B�B
�
B�Bc �f � |�t j | |�� � S t j d|� d| � �� � S )zrUse readlink() to resolve link.
Return a string representing the path to which the symbolic link points.
N��dir_fd�/proc/�/)�os�readlink)�path�pidr. s r �_read_proc_linkr5 m s@ � �
���{�4��/�/�/�/�
�;�,��,�,�d�,�,�-�-�-� c � � |�/t j | t j t j z |�� � }nd|� d| � �}t j |d� � 5 }|� � � � � � � dd�� � cddd� � S # 1 swxY w Y dS # t $ r}d t |� � z cY d}~S d}~ww xY w)
zXRead file content.
Return its content, or return a textual error if it failed.
Nr- r/ r0 �rb�UTF-8�replace��errors�Error: )
r1 r% �O_RDONLY� O_CLOEXEC�io�readr&