�
\�e�
� � � d dl Z d dlZd dlZd dlZde j dedeeef fd�Zdededz fd�Zdej d ed
edededz f
d�Z
y)
� N�release_date�m_months�returnc � � |dz }|dz }| j |z | j |z dz z }| j |z dz }|dk( rd}|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)r r �years�months�support_end_year�support_end_months �+/usr/lib/python3/dist-packages/apt/utils.py�get_maintenance_end_dater sx � �
��N�E�
��]�F�#�(�(�5�0�L�4F�4F��4O�TV�3V�V��%�+�+�f�4��:���A�����A����/�0�0� �pathc �R � | rt j j | � syt j t j
| � � 5 }t j |� }t |� }d|vr
ddd� y|d }t j |� cddd� S # 1 sw Y yxY w)zF
return the release date as time_t for the given release file
N�Date) �osr �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! / s� � � �r�w�w�~�~�d�+�� ���7�7�7��=� >� )�$��o�o�d�#���s�)���� �� )� )�
�v����"�"�4�(�
)� )� )�s �&B�:B�B&�cache�pkgname�label�releasec �" � || vry| | }d}|j j D ]W }|�|j ��|j D ]7 \ }}|j |k( s�|j |k( s�&|j
|k( s�6|}�9 �Y |sy| j j |j d d � } | j j D ]� }
|
j D ]� }| s�| j |j k( s� | j s�-t j j d� }dD ]k }
t j |
j � dj# |
j$ |
� z }t& |