403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/UpdateManager/Core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pyc
ó
¤Oc@sddlZejddeƒddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
ZddlmZddlmZdZdZdefd	„ƒYZd
ejjfd„ƒYZdS(iÿÿÿÿNtignoresapt API not stable yet(tgettext(tUpdateOrigins/var/lib/synaptic/preferencess>http://changelogs.ubuntu.com/changelogs/pool/%s/%s/%s/%s_%s/%stHttpsChangelogsUnsupportedErrorcBseZdZRS(s¶ https changelogs with credentials are unsupported because of the
        lack of certitifcation validation in urllib2 which allows MITM
        attacks to steal the credentials
    (t__name__t
__module__t__doc__(((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pyR)stMyCachecBs¼eZdZdd„Zd„Zd„Zd„Zed„ƒZ	ed„ƒZ
d„Zd„Zd	„Z
d
„Zedd„Zd„Zd
„Zd„Zd„Zd„Zd„ZRS(tUbuntucCs­tjj|||ƒt|jƒdks1t‚|jƒsDt‚|jƒi|_i|_	|j
jdkr|jƒn|j
jdkr£|j
j
dks©t‚dS(Ni(tapttCachet__init__tlentreqReinstallPkgstAssertionErrort_dpkgJournalDirtyt
_initDepCachetall_changestall_newst	_depcachetbroken_counttsaveDistUpgradet	del_count(tselftprogresstrootdir((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pyR4s
		
cCsVtjjtjjdƒƒd}x-tj|ƒD]}tjd|ƒr2t	Sq2Wt
S(s`
        test if the dpkg journal is dirty
        (similar to debSystem::CheckUpdates)
        sDir::State::statuss/updatess[0-9]+(tostpathtdirnametapt_pkgtConfigt	find_filetlistdirtretmatchtTruetFalse(Rtdtf((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pyRGs	cCsC|jjƒtjjtƒr2|jjtƒn|jjƒdS(N(Rtread_pinfileRRtexiststSYNAPTIC_PINFILEtinit(R((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pyRSs
cCs|jƒdS(N(R(R((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pytclear[scCs>tj|jƒ}tjƒ}|j||j|jƒ|jS(s< get the size of the packages that are required to download (RtPackageManagerRtAcquiretget_archivest_listt_recordstfetch_needed(Rtpmtfetcher((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pytrequiredDownload]scCs
|jjS(N(Rt
inst_count(R((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pytinstallCountdscCs
|jjS(N(Rt
keep_count(R((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pyt	keepCountgscCsv|jjtƒ|jj}|jjdkr;|jƒn|jjdkr_|jjdkset‚|jjƒ|S(s@ this functions mimics a upgrade but will never remove anything i(RtupgradeR#RR+RR(RtwouldDelete((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pyRis
*
cCsà|jj}|jj|jƒ}|d}d}xÍ|jD]e\}}|j|j|jfƒr;|j	j
j|ƒ}|r ||j|jf}	|	}Pq q;q;W|r|jr|jrtt
dƒ|jdƒ||j|jf<||j|jf}n|jdkr|SxÅ|jjD]·}
|rQtj|
j|jƒdkrQq!nx„|
jD]y\}}|j|j|jfƒr[|j	j
j|ƒ}|rÔ||j|jf}	|	j|jkrÑ|	}qÑqÔq[q[Wq!W|S(s9 match 'pkg' origin against 'matcher', take versions between
            installedVersion and candidateVersion into account too
            Useful if installed pkg A v1.0 is available in both
            -updates (as v1.2) and -security (v1.1). we want to display
            it as a security update then
        sOther updates (%s)iN(NN(t_pkgtcurrent_verRtget_candidate_vertNonet	file_listthas_keytarchivetorigint_pcacheR/t
find_indexRt_t
importancetversion_listRtVersionComparetver_str(Rtpkgtmatchertinst_vertcand_vert
update_origintverFileItertindext	indexfileR"tver((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pytmatchPackageOrigints8
,cCs>tj|dƒ}t|ƒdkr:dj|dƒ}n|S(s strip of the epoch t:it(tstringtsplitRtjoin(Rtverstrtl((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pyt_strip_epoch¤scCs@||}|j}d}|jjj|jƒj}|j}	|j|	ƒ}
|jdƒ}t	|ƒdkrz|d}n|d}|j
dƒr¤d|d}n|r³|}
nt|||||
|f}
tj
|
ƒ}|jdkr|jdkrtd	ƒ‚ntj|
ƒ}d}d
tj|ƒ}xtr;|jƒ}|dkrXPntj||ƒ}|r.|j}|r¤d|kr¤|jddƒd}n|jdƒ}|rÞd|krÞ|jddƒd}n|r	|r+tj||ƒdkr+Pq+q.|r.tj||ƒdkr.Pq.n||}q6W|S(s* helper that fetches the file in question tmaint/iitlibithttpsRUsKhttps locations with username/password are notsupported to fetch changelogss^%s \((.*)\)(.*)$RT(tsourcePackageNameRCRR=R;tsectiontcandidateVersionR[RWRt
startswithtCHANGELOGS_URIturlparseturlsplittschemetusernameRturllib2turlopenR!tescapeR#treadlineR"tinstalledVersiontgroupRRH(Rtnametfnametstrict_versioningtchangelogs_uriRJtsrcpkgtsrc_sectionRatsrcver_epochtsrcverRZtprefixturitrest	changelogtalllinestregexptlineR"t	installedtchangelogver((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pyt_get_changelog_or_news«sV
		

			cCsº||}|jj}|dkr&dS|jjjdƒ}|sEdS|jdƒdjƒ}d|kr‰|jdƒdjdƒ}n|jj}|j	dƒd}|d||fS(NtSourcet(iit)R]s/%s_%s.changelog(
t	candidateRxR>trecordtgetRWtstriptrstriptversiont
rpartition(RRoRJtdeb_uritsrcrecRsRvtbase_uri((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pyt+_guess_third_party_changelogs_uri_by_sourceÿs
cCs;||}|jj}|r7dtj|ddƒdSdS(s` guess changelogs uri based on ArchiveURI by replacing .deb
            with .changelog
        s%s.changelogt.iiN(R„RxRVtrsplitR>(RRoRJR‹((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pyt+_guess_third_party_changelogs_uri_by_binarys

cCs6|j|ƒ|j|ƒy|jƒWnnXdS(N(tget_newst
get_changelogtrelease(RRotlock((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pytget_news_and_changelogs

cCsHy|j|dtƒ}Wntk
r-dSX|rD||j|<ndS(s7 get the NEWS.Debian file from the changelogs location sNEWS.DebianN(R€R#t	ExceptionR(RRotnews((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pyR’%s
cCsï|j|ƒ}|j|ƒ}d}x±||gD]£}|r1y/|j|dt|ƒ}|j|c|7<WqÔtjtfk
r–}tdƒ}qÔt	t
jtj
fk
rÐ}tjdƒtdƒ}qÔXq1q1W|j|c|7<dS(NRURzsAThis update does not come from a source that supports changelogs.serror on changelog fetchingsOFailed to download the list of changes. 
Please check your Internet connection.(R‘RŽR€R$RRit	HTTPErrorRREtIOErrorthttplibt
BadStatusLinetsocketterrortloggingt	exception(RRotchangelogs_uri_binarytchangelogs_uri_sourcet
error_messageRrRzte((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pyt(_fetch_changelog_for_third_party_package.s"
cCsQ||j}tdƒ||j||jf|j|<|jg|D]}|j^qEkrn|j|ƒdS||j}||jj	ddƒ}yA|j
|dƒ}t|ƒdkrÔtdƒ||f}nWnbtj
k
r}tdƒ||f}n7ttjtjfk
r9}d	G|GHtd
ƒ}nX|j|c|7<dS(s4 get the changelog file from the changelog location sGChanges for the versions:
Installed version: %s
Available version: %s

NRTs%3ARzis¬The changelog does not contain any relevant changes.

Please use http://launchpad.net/ubuntu/+source/%s/%s/+changelog
until the changes become available or try again later.s¡The list of changes is not available yet.

Please use http://launchpad.net/ubuntu/+source/%s/%s/+changelog
until the changes become available or try again later.scaught exception: sOFailed to download the list of changes. 
Please check your Internet connection.(tcandidateOriginRERmRbRtCHANGELOG_ORIGINRBR¥R`treplaceR€RRiR™RšR›RœRRž(RRotoriginstoRsRuRzR¤((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pyR“Fs&
+%

			N(RRR§R>RRRR+tpropertyR4R6R8RRSR[R$R€RŽR‘R–R’R¥R“(((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pyR0s$						0	T		
				(twarningstfilterwarningst
FutureWarningR	RRŸRRVRiR›ReRR!tDistUpgrade.DistUpgradeCachetDistUpgradeRREt
UpdateListRR)RdR—RtDistUpgradeCacheR(((s>/usr/lib/python2.7/dist-packages/UpdateManager/Core/MyCache.pyt<module>s$

Youez - 2016 - github.com/yon3zu
LinuXploit