HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/python2.7/dist-packages/apt/utils.pyc
�
&��cc@s�ddlmZddlZddlZy"ddlmZmZeeWnek
r]nXddlZddl	Z	eeed�Z
d�Zd�ZdS(i����(tprint_functionN(tOptionaltTuplecCsj|d}|d}|j||j|d}|j|d}|dkr`d}|d8}n||fS(s�
    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
    iii(tyeartmonth(trelease_datetm_monthstyearstmonthstsupport_end_yeartsupport_end_month((s-/usr/lib/python2.7/dist-packages/apt/utils.pytget_maintenance_end_date's



cCs�|stjj|�rdStjtj|���I}tj|�}t|�}d|krddS|d}tj	|�SWdQXdS(sF
    return the release date as time_t for the given release file
    tDateN(
tostpathtexiststNonetfdopentapt_pkgtopen_maybe_clear_signed_filetTagFiletnexttstr_to_time(Rtdatattagtsectiontdate((s-/usr/lib/python2.7/dist-packages/apt/utils.pyt"get_release_date_from_release_file;s
cCs�||krdS||}d}x�|jjD]w}|dks-|jdkrTq-nxM|jD]B\}}|j|kr^|j|kr^|j|kr^|}q^q^Wq-W|s�dS|jj|jdd�}	x�|jj	D]�}
x�|
j
D]�}|	r�|	j|jkr�|	jr�t
jjd�}xXddgD]G}
t
j|
j�d|
j|
f}tjj||�r2||Sq2Wq�q�Wq�WdS(s- get the release file that provides this pkg isDir::State::listst	InReleasetReleasesdists_%s_%sN(Rt_pkgtversion_listt	file_listtorigintlabeltarchivet_listt
find_indextlisttindex_filestdescribet
is_trustedRtconfigtfind_dirturi_to_filenameturitdistR
RR(tcachetpkgnameR"treleasetpkgtvertavertver_filet_indext	indexfilet	metaindextmtdirnametrelfiletname((s-/usr/lib/python2.7/dist-packages/apt/utils.pytget_release_filename_for_pkgLs6
	(
t
__future__RtdatetimeR
ttypingRRtImportErrortaptRRRR=(((s-/usr/lib/python2.7/dist-packages/apt/utils.pyt<module>s