%PDF- %PDF-
Direktori : /lib/python3/dist-packages/apport/__pycache__/ |
Current File : //lib/python3/dist-packages/apport/__pycache__/report.cpython-312.pyc |
� �s�f!) � �� � d Z ddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlZddl Z ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlm Z m!Z! ddl"Z#ddl$Z#ddl%Z%ddl&m'Z' ddl(m)Z* ddl+m,Z,m-Z- ej\ j_ dd� Z0e0� d �Z1e0� d �Z2dZ3ej\ j_ dd � Z4dZ5dZ6dZ7dZ8g d�Z9d� Z:de;de!e; fd�Z< d*de;de=dz de=dz de;fd�Z> d*de;de=dz de=dz de;fd�Z?d� Z@ d+deAe; deBe;e;f dz deCde;fd �ZDd!� ZEd"� ZFd#� ZGd$� ZHd%� ZI G d&� d'eBe;e;f � ZJ G d(� d)e%j� � ZLy),z;Representation of and data collection for a problem report.� N)�Iterable�Iterator)�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 | � t j | � D ]$ }||vs�|j |� t ||� �& y# t $ r Y yw xY w)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 V sc � �����g�&� � '� '�� 0� 5���K���O�O�A��$�Q��4�5�� � ���s �A � A �A � directory�returnc # � K � t j | � j � D ]8 } |j d�� 5 }|D ] }|j � �� � ddd� �: y# 1 sw Y �xY w# t $ r Y �Sw xY w# t $ r Y yw xY w�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, b s� � �� � � ���i�0�8�8�:� �I� ��^�^�W�^�5� +�� "� +��"�j�j�l�*�+�+�� �+� +�� � �� ��� �� �sb �B �&A>