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/DistUpgradeViewNonInteractive.pyc
ó
¤Oc@s¸ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
ZddlmZm
Z
ddlmZmZddlmZmZmZddlmZdefd„ƒYZdefd	„ƒYZd
efd„ƒYZedkr´eƒZeƒZeƒZejd
dƒejƒZx#ejdD]Z ee j!ƒqoWej"eeƒej#dƒej$dƒndS(iÿÿÿÿN(tNoSectionErrort
NoOptionError(tPIPEtPopen(tDistUpgradeViewtInstallProgresst
FetchProgress(tDistUpgradeConfigtNonInteractiveFetchProgresscBseZd„ZRS(cCsutj|||||ƒ|tjkrqd||jtjt|jƒƒfGHtj	j
ƒrqtj	jƒqqndS(Nsfetched %s (%.2f/100) at %sb/s(Rt
update_statustapt_pkgt	STAT_DONEtpercenttsize_to_strtinttcurrent_cpstsyststdouttisattytflush(tselfturitdescrt
shortDescrtstatus((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pyR	)s$(t__name__t
__module__R	(((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pyR(stNonInteractiveInstallProgresscBsVeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
RS(	s 
    Non-interactive version of the install progress class
    
    This ensures that conffile prompts are handled and that
    hanging scripts are killed after a (long) timeout via ctrl-c
    cCstj|ƒtjdƒtjjdƒs<dtjd<ndtjd<dtjd<tdƒ|_||_	d	|_
y2|jjd
dtƒr¨t
jjdd
ƒnWnttfk
rÂnXd|_y|jjd
dƒ|_Wntk
rûnXdS(Ns*setting up environ for non-interactive usetDEBIAN_FRONTENDtnoninteractivetnonetAPT_LISTCHANGES_FRONTENDt1tRELEASE_UPRADER_NO_APPORTt.itNonInteractivetForceOverwritesDPkg::Options::s--force-overwritei`	tTerminalTimeout(Rt__init__tloggingtdebugtostenvironthas_keyRtconfigtlogdirtinstall_run_numbertgetWithDefaulttFalseR
tsetRRttimeouttgetintt	Exception(RR-((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pyR&;s&



			
c
Cs|tjd||fƒ|jjddtƒs3dStjtjƒ}d|d<g}d|kr‰d}d}d	}d
|||f}n¬d|krºd}d
}d}d||f}n{d|krîd}d}d}d
|||f}nGd|kr"d}d}d}d
|||f}nd||fGHdStjj	|ƒs\tjd|ƒdSt
|ƒjƒdjƒj
ƒd}	d|	ksšd|	kr¦dg}
n3d|	krÈdg}
d|d<ntjd |	ƒd!t
|ƒjƒkrd"|d#<d$|d%<d&}	d'dg}
n|j|	ƒ|j|
ƒ|j|ƒ|j|ƒ|dkr¯td(|d)td*tƒjƒd}|r5|j|j
d+d,ƒd,jƒƒq5n†|d
kr5tjj|ƒ}|j
d-ƒd}td.|d)td*tƒjƒd}|r5|j|j
d+d,ƒd,jƒƒq5ntjd/||fƒtj|d0|ƒ}tjd1||fƒdS(2Ns)got a error from dpkg for pkg: '%s': '%s'R#tDebugBrokenScriptsR(t	PYCENTRALspost-installations/var/lib/dpkg/info/tpostinstt	configures%s/%s.%sspre-installations/var/lib/dpkg/tmp.ci/tpreinsttinstalls%s/%sspre-removaltprermtremovespost-removaltpostrms3UNKNOWN (trigger?) dpkg/script failure for %s (%s) s+can not find failed maintainer script '%s' iitbashs/bin/shs-extperls-dsAutoTrace NonStoptPERLDB_OPTSsunknown interpreter: '%s's. /usr/share/debconf/confmodulet	developert
DEBCONF_DEBUGR tDEBIAN_HAS_FRONTENDs/usr/share/debconf/frontendtshs%dpkg-query -s %s|grep ^Config-VersiontshellRt:it_sdpkg-query -s %s|grep ^Versionsre-running '%s' (%s)tenvs%s script returned: %s(R'terrorR,R/R0tcopyR)R*tpathtexiststopentreadlinetstriptsplittwarningtreadtappendtextendRtTrueRtcommunicatetbasenameR(t
subprocesstcall(
RtpkgterrormsgR*tcmdtprefixtnametargumenttmaintainer_scripttinterpt
debug_optstversiontret((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pyRITsz	
&	






&)&)cCs`tjd|ƒtjdƒytj|jdƒWn$tk
r[}tjd|ƒnXdS(Ns.got a conffile-prompt from dpkg for file: '%s'isn
s/error '%s' when trying to write to the conffile(	R'RQttimetsleepR)twritet	master_fdR4RI(Rtcurrenttnewte((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pytconffile­s
cCs²tj|ƒtjƒ|_|jjddtƒ}|rtjj	|j
d|jƒ}tj
d|ƒt|dƒ|_nttjdƒ|_|jjdtjƒƒdS(NR#tDpkgProgressLogsdpkg-progress.%s.logs!writing dpkg progress log to '%s'tws
%s: Start
(Rtstart_updateRet
last_activityR,R/R0R)RKtjoinR-R.R'R(RMtdpkg_progress_logtdevnullRg(Rtprogress_logtfullpath((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pyRo·s
cCsGtj|ƒ|jjdtjƒƒ|jjƒ|jd7_dS(Ns
%s: Finished
i(Rt
finish_updateRrRgRetcloseR.(R((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pyRvÂs

cCs*|jjdtjƒ|||fƒdS(Ns%s:%s:%s:%s
(RrRgRe(RRZRt
status_str((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pyt
status_changeÇscCs0tj|ƒ|jdkr dS|j|jtjƒkrutjd|j|j	fƒt
j|jt
dƒƒntj|jgggdƒ}x‰t|dƒdkrtjƒ|_y-t
j|jdƒ}tjjd|ƒWntk
rüdSXtj|jgggdƒ}q–WtjjƒdS(Ns,no activity %s seconds (%s) - sending ctrl-cigš™™™™™¹?iis%s(Rtupdate_interfacetstatusfdtNoneRpR2ReR'RQRR)RgRhtchrtselecttlenRRRRtOSErrorR(Rtrests((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pyRzÌs"
	
"cCsltjdƒdtjd<dtjd<tjƒ\|_|_|jdkretjd|jƒn|jS(Nsdoing a pty.fork()tdumbtTERMttruetPAGERis
pid is: %s(R'R(R)R*tptytforktpidRh(R((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pyRˆäs


(RRt__doc__R&RIRlRoRvRyRzRˆ(((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pyR3s		Y	
				tDistUpgradeViewNonInteractivecBseZdZddd„Zd„Zd„Zd„Zdd„Zd„Z	d„Z
ded„Zd	d
„Z
d„Zdd„Zd
„ZRS(s- non-interactive version of the upgrade view cCs\tj|ƒtdƒ|_tƒ|_t|ƒ|_tj	j
jƒ|_|j
t_dS(NR"(RR&RR,Rt_fetchProgressRt_installProgresstapttprogresstbaset
OpProgresst_opProgresst
excepthookRt__excepthook__(RtdatadirR-((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pyR&ñs
cCs%tjd||fƒ|jƒdS(s2 on uncaught exceptions -> print error and reboot sgot exception '%s': %s N(R't	exceptiontconfirmRestart(Rttypetvaluet	traceback((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pyR“øscCs|jS(s5 return a OpProgress() subclass for the given graphic(R’(R((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pytgetOpCacheProgressýscCs|jS(s  return a fetch progress object (RŒ(R((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pytgetFetchProgressscCs|jS(s" return a install progress object (R(Rtcache((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pytgetInstallProgressscCsdS(s\ update the current status of the distUpgrade based
            on the current view
        N((Rtmsg((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pytupdateStatusscCsdS(sÏ we have 5 steps current for a upgrade:
        1. Analyzing the system
        2. Updating repository information
        3. Performing the upgrade
        4. Post upgrade stuff
        5. Complete
        N((Rtstep((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pytsetStepscCsžtj||||||ƒtjdg|jD]}|j^q/ƒtjdg|jD]}|j^qYƒtjdg|jD]}|j^qƒƒtS(Nstoinstall: '%s'stoupgrade: '%s'storemove: '%s'(	RtconfirmChangesR'R(t	toInstallR^t	toUpgradettoRemoveRU(Rtsummarytchangest	demotionstdownloadSizetactionstremoval_boldtp((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pyR£s
***tNocCstS(s0 ask a Yes/No question and return True on 'Yes' (RU(RR§RŸtdefault((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pytaskYesNoQuestionscCs#tjdƒ|jjddtƒS(s2 generic ask about the restart, can be overridden sconfirmRestart() calledR#t
RealReboot(R'R(R,R/R0(R((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pyR—#s
cCstjd|||fƒdS(s display a error s
%s %s (%s)N(R'RI(RR§RŸtextended_msg((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pyRI(scCstjdƒdS(Nsview.abort called(R'RI(R((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pytabort+sN(RRRŠR|R&R“R›RœRžR R¢RUR£R°R—RIR³(((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pyR‹ïs					
	t__main__sxserver-xorgspre-installation script failediii(%RŽR
R'ReRR)R‡R~RXRJtapt.progresstConfigParserRRRRRRRtDistUpgradeConfigParserRRRR‹RtviewtfptipRItCacheRtargvRZtmark_installtcommitRftexit(((sM/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pyt<module>s8¼@			


Youez - 2016 - github.com/yon3zu
LinuXploit