CasperSecurity

Current Path : /lib/python3/dist-packages/apt/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/apt/__pycache__/utils.cpython-310.pyc

o

4��f�
�@sXddlmZddlZddlZddlmZmZddlZddlZdd�Z	dd�Z
dd	�ZdS)
�)�print_functionN)�Optional�TuplecCsR|d}|d}|j||j|d}|j|d}|dkr%d}|d8}||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_month�r�+/usr/lib/python3/dist-packages/apt/utils.py�get_maintenance_end_dates�rcCs�|rtj�|�s
dSt�t�|���'}t�|�}t|�}d|vr)	Wd�dS|d}t�|�Wd�S1s<wYdS)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�daterrr�"get_release_date_from_release_file2s
�$�r cCs||vrdS||}d}|jjD]%}|dus|jdurq|jD]\}}|j|kr4|j|kr4|j|kr4|}qq|s:dS|j�|jdd�}	|jjD]=}
|
j	D]7}|	r�|	j
|j
kr�|	jr�tj
�d�}dD]!}
t�|
j�d|
j|
f}tj�||�r�||SqcqNqIdS)z- get the release file that provides this pkg NrzDir::State::lists)�	InRelease�Releasezdists_%s_%s)�_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�namerrr�get_release_filename_for_pkgCsD


��
�
����
rB)�
__future__r�datetimer�typingrr�aptrrr rBrrrr�<module>s
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY