Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/apt/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/apt/utils.pyc

ó
WâRc@s7ddlZddlZd„Zd„Zd„ZdS(iÿÿÿÿNcCsj|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_dates



cCsf|stjj|ƒrdStjt|ƒƒ}|jƒ}d|krOdS|d}tj|ƒS(sF
    return the release date as time_t for the given release file
    tDateN(	tostpathtexiststNonetapt_pkgtTagFiletopentnexttstr_to_time(Rttagtsectiontdate((s-/usr/lib/python2.7/dist-packages/apt/utils.pyt"get_release_date_from_release_file,s
cCsV||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]r}
xi|
j
D]^}|	rì|	j|jkrì|	jrìt
jjdƒ}t
j|
jƒd|
j}
||
SqìWqÜWdS(s- get the release file that provides this pkg isDir::State::listssdists_%s_ReleaseN(R
t_pkgtversion_listt	file_listtorigintlabeltarchivet_listt
find_indextlisttindex_filestdescribet
is_trustedRtconfigtfind_dirturi_to_filenameturitdist(tcachetpkgnameRtreleasetpkgtvertavertver_filet_indext	indexfilet	metaindextmtdirnametname((s-/usr/lib/python2.7/dist-packages/apt/utils.pytget_release_filename_for_pkg:s2
	(tos.pathR
RRRR5(((s-/usr/lib/python2.7/dist-packages/apt/utils.pyt<module>s