HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/self/root/usr/lib/python3/dist-packages/apt/__pycache__/
Upload File :
Current File : //proc/self/root/usr/lib/python3/dist-packages/apt/__pycache__/utils.cpython-311.pyc
�

�xkd�
��T�ddlmZddlZddlZddlmZmZddlZddlZd�Z	d�Z
d�ZdS)�)�print_functionN)�Optional�Tuplec��|dz}|dz}|j|z|j|zdzz}|j|zdz}|dkrd}|dz}||fS)z�
    get the (year, month) tuple when the maintenance for the distribution
    ends. Needs the data of the release and the number of months that
    its is supported as input
    �r�)�year�month)�release_date�m_months�years�months�support_end_year�support_end_months      �+/usr/lib/python3/dist-packages/apt/utils.py�get_maintenance_end_datersr��
��N�E�
��]�F�#�(�5�0�L�4F��4O�TV�3V�V��%�+�f�4��:���A������A����/�0�0�c�j�|rtj�|��sdStjt	j|����5}t	j|��}t|��}d|vr	ddd��dS|d}t	j|��cddd��S#1swxYwYdS)zF
    return the release date as time_t for the given release file
    N�Date)	�os�path�exists�fdopen�apt_pkg�open_maybe_clear_signed_file�TagFile�next�str_to_time)r�data�tag�section�dates     r�"get_release_date_from_release_filer#1s��
��r�w�~�~�d�+�+���t�	��7�7��=�=�	>�	>�)�$��o�d�#�#���s�)�)���� � ��	)�)�)�)�)�)�)�)�
�v����"�4�(�(�
)�)�)�)�)�)�)�)�)�)�)�)����)�)�)�)�)�)s�
)B(�B(�(B,�/B,c�j�||vrdS||}d}|jjD]<}|�|j��|jD](\}}|j|kr|j|kr
|j|kr|}�)�=|sdS|j�|jdd��}	|jjD]�}
|
j	D]�}|	r�|	j
|j
kr|	jrxtj
�d��}dD]V}
tj|
j��d|
j�d|
��z}t$j�||z��r||zcccS�W����dS)z+get the release file that provides this pkgNrzDir::State::lists)�	InRelease�Release�dists_�_)�_pkg�version_list�	file_list�origin�label�archive�_list�
find_index�list�index_files�describe�
is_trustedr�config�find_dir�uri_to_filename�uri�distrrr)�cache�pkgnamer-�release�pkg�ver�aver�ver_file�_index�	indexfile�	metaindex�m�dirname�relfile�names               r�get_release_filename_for_pkgrHBs����e����t�
��.�C�
�C���%�
�
���<�4�>�1�� $��	�	��H�f���5�(�(��N�e�+�+��$��/�/����	����t���&�&�s�}�Q�'7��':�;�;�I��[�%�
.�
.�	��&�		.�		.�A��
.�Y�/�1�:�=�=�)�BV�=�!�.�1�1�2E�F�F��7�.�.�G�"�2�9�=�A�A�A�!������E��D��w�~�~�g��n�5�5�.�&��~�-�-�-�-�-�-�-�.��		.��4r)�
__future__r�datetimer�typingrr�aptrrr#rH�rr�<module>rNs���&&�%�%�%�%�%�����	�	�	�	�"�"�"�"�"�"�"�"�
�
�
�
�����1�1�1�&)�)�)�""�"�"�"�"r