%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/DistUpgrade/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/DistUpgrade/__pycache__/DistUpgradeApport.cpython-312.pyc

�

&��e��
��ddlZddlZddlZddlZddlZddlZdddddddd	d
d�	Zdd�Zd
�Zd�Z	d�Z
edk(reddd�yy)�N�Aptlog�
ApttermlogzAptclonesystemstate.tar.gz�
Historylog�Lspcitxt�Mainlog�Termlog�	Screenlog�	Xorgfixup)	zapt.logzapt-term.logzapt-clone_system_state.tar.gzzhistory.logz	lspci.txtzmain.logzterm.logzscreenlog.0zxorg_fixup.logc��d}tD]�}tjj||�}tjj	|�r"tjj|�dk(r�e|t|z}tj|tj�r|f||<��tjj|�s��	ddl	m
}|dd|zgd��||<��y#t$rtjd|z�Y��wxYw)	N�VarLogDistupgrader)�root_command_output�catz%sF)�decode_utf8z8failed to import apport python module, can't include: %s)�APPORT_ALLOWLIST�os�path�join�isfile�getsize�access�R_OK�exists�apport.hookutilsr
�ImportError�logging�error)�report�logdir�dirname�fname�f�identr
s       �?/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeApport.py�_apport_append_logfilesr$s���!�G�!�;���G�G�L�L���'���w�w�~�~�a� �B�G�G�O�O�A�$6�!�$;���*�5�1�1��
�9�9�Q���� ��E�F�5�M�
�W�W�^�^�A�
�
;�@� 3��D�1�H�%�5�!:��u�
�;���
;��
�
�2�49�:�;�
;�s�C!�!!D�Dc�@�tjd�dtjvrtjd�y	ddlm}ddlm}d	d
l
m}dtjd<||||�tjjd�rd|�}|j!d
d�d|ddz}|j!d|�|j!dd|z�t#|�|j%d�y#t$r"}tjd|z�Yd}~yd}~wwxYw)Nzrunning apport_crash()�RELEASE_UPRADER_NO_APPORT�!RELEASE_UPRADER_NO_APPORT env setFr)�apport_excepthook)�Reportz?failed to import apport python module, can't generate crash: %s�)�VERSIONz/usr/bin/do-release-upgradez./var/crash/_usr_bin_do-release-upgrade.0.crash�Tags�dist-upgradez	Ubuntu %s��
DistroRelease�Packagez!ubuntu-release-upgrader-core 1:%sT)r�debugr�environ�apport_python_hookr(�
apport.reportr)rr�DistUpgradeVersionr+�sys�argvrr�
setdefaultr$�add_to_existing)	�type�value�tbr(r)�er+r�releases	         r#�apport_crashr?)s���M�M�*�+�"�b�j�j�0��
�
�9�:���8�(�
,�/�C�H�H�Q�K��d�E�2�&�	�w�w�~�~�F�G�������&�.�1����!��,�����/�7�3�	���)�%H�!�&"�	#���'����<�	>���+���
�
�+�-.�/�	0����s�C2�2	D�;D�Dc��tjd||�dtjvrtjd�yd}d}d|vrtjd|z�yt	j
d	d�}||vrtjd|z�ytjtj�|vrtjd
|z�ytjj|�r�|d|g}|jdd
g�tD]3}|jdtjj||�g��5	tj|tj d��}|j"j%|�|j"j'�yy#t($r"}tj*d|z�Yd}~yd}~wwxYw)Nz"running apport_pkgfailure() %s: %sr&r'F�/var/log/dist-upgrade/z/usr/share/apport/package_hookz*dependency problems - leaving unconfiguredzDdpkg error because of dependency problems, not reporting against %s �dpkgz:dpkg error because of full disk, not reporting against %s z-pz--tagsr-z-lT)�stdin�universal_newlineszFailed to run apport (%s))rr1rr2�gettext�dgettext�strerror�errno�ENOSPCrr�extendrr�
subprocess�Popen�PIPErC�write�close�	Exception�warning)	�pkg�errormsg�LOGDIR�s�needle�argsr �pr=s	         r#�apport_pkgfailurerYJs����M�M�6��X�F�"�b�j�j�0��
�
�9�:��
%�F�(�A�
4�x�?��
�
�.�03�4�	5��
�
�
��<�>�F�
����
�
�.�03�4�	5��	�{�{�5�<�<� �H�,��
�
�$�&)�*�	+��	�w�w�~�~�a���4��~�����X�~�.�/�%�	=�E��K�K��r�w�w�|�|�F�E�:�;�<�	=�	�� � ��Z�_�_�48�:�A�
�G�G�M�M�(�#�
�G�G�M�M�O�
���	�	��O�O�7�!�;�<���	�s�AF#�#	G�,G	�	Gc�\�dtjvrtjd�ydtjvrytjjd�r	t
jd�dk(Stjd	�y#t$rtjd�YywxYw)
z( run apport, check if we have a display r&r'F�DISPLAYTz/usr/bin/apport-clirz&Unable to launch '/usr/bin/apport-cli'zcan't find apport)
rr2rr1rrrK�callrP�	exception��r#�
run_apportr`ws���"�b�j�j�0��
�
�9�:���B�J�J���	�����-�	.�	��O�O�$9�:�a�?�@��M�M�%�&���	�	����F�G��	�s�B
�
B+�*B+�__main__)rA)rrrKr6rErHrr$r?rYr`�__name__r^r_r#�<module>rcsm��	���
���� �%A������!�
��;�&�B*�Z�$�z����t�T�"�r_

Zerion Mini Shell 1.0