Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/UpdateManager/Core/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/UpdateManager/Core/UpdateList.pyc


Oc@swddlZejddeddlmZddlZddlZdefdYZdefdYZ	dS(	iNtignoresAccessed deprecated property(tgettexttUpdateOrigincBseZdZRS(cCsg|_||_||_dS(N(tpackagest
importancetdescription(tselftdescR((sA/usr/lib/python2.7/dist-packages/UpdateManager/Core/UpdateList.pyt__init__s		(t__name__t
__module__R(((sA/usr/lib/python2.7/dist-packages/UpdateManager/Core/UpdateList.pyRst
UpdateListcBs)eZdZdZdZdZRS(sx
  class that contains the list of available updates in 
  self.pkgs[origin] where origin is the user readable string
  cCsy(tjd}|jj}~WnItk
rs}d|GH|jtdtd|tjdnXd|_	i|_
d|_|j||_
dS(Nslsb_release -c -ssError in lsb_release: %ssFailed to detect distributions?A error '%s' occurred while checking what system you are using.ii(tostpopentreadtstript	Exceptionterrort_tsystexittdistUpgradeWouldDeletetpkgstnum_updatestinitMatchertmatcher(Rtparenttpipetdistte((sA/usr/lib/python2.7/dist-packages/UpdateManager/Core/UpdateList.pyR)s					cCsd|dtddfd|dtddfd|dtd	d
fd|dtdd
f|dtddfg}i}x3|D]+\}}}}t|||||f<qWttdd|d<|S(Ns%s-securitytUbuntusImportant security updatesi
s
%s-updatessRecommended updatesi	s%s-proposedsProposed updatesis%s-backportst	BackportsisDistribution updatesis
Other updatesi(NN(RRtNone(RRtmatcher_templatesRtorigintarchiveRR((sA/usr/lib/python2.7/dist-packages/UpdateManager/Core/UpdateList.pyR:scCs0g|_|j|_x|D]}|js7|jr|jdkrXdG|jGHqn|j||j	}|j
j|sg|j
|<n|j
|j||j
d|_
n|jr|jp|jr|jj|jqqWx.|j
jD]}|j
|jdqW|jj|_dS(Ns.WARNING: upgradable but no canidateOrigin?!?: icSst|j|jS(N(tcmptname(txty((sA/usr/lib/python2.7/dist-packages/UpdateManager/Core/UpdateList.pyt<lambda>bs(t	held_backtsaveDistUpgradeRt
is_upgradabletmarked_installtcandidateOriginR R%tmatchPackageOriginRRthas_keytappendRtmarked_upgradetkeystsortt	_depcachet
keep_countt	keepcount(Rtcachetpkgtorigin_nodetl((sA/usr/lib/python2.7/dist-packages/UpdateManager/Core/UpdateList.pytupdateIs"	
(R	R
t__doc__RRR;(((sA/usr/lib/python2.7/dist-packages/UpdateManager/Core/UpdateList.pyR#s		(
twarningstfilterwarningstDeprecationWarningRRRRtobjectRR(((sA/usr/lib/python2.7/dist-packages/UpdateManager/Core/UpdateList.pyt<module>s