Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/DistUpgrade/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pyc


Oc@sddlZddlZddlZddlZddlZddlmZmZmZddlZddl	Z	ddl
m	Zddlm
Z
deejjjfdYZdejjjfdYZd	efd
YZedkreZe
dd
dGHeZejdddGHejdddGHejdejejZejZejeZ x#ej!dD]Z"ee"j#qWej$ee ejdej%j&dddgej'dddej(dgdejddGHndS(iN(tDistUpgradeViewtInstallProgresst
FetchProgress(tgettext(ttwraptTextFetchProgresscBseZdZdZRS(cCs'tjjjj|tj|dS(N(tapttprogressttexttAcquireProgresst__init__R(tself((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pyR
%scCs-tjjjj||tj||tS(N(RRRR	tpulseRtTrue(Rtowner((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pyR(s(t__name__t
__module__R
R(((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pyR$s	tTextCdromProgressAdaptercBs)eZdZdZdZdZRS(s  Report the cdrom add progress  cCs-|r)d||t|jdfGHndS(s; update is called regularly so that the gui can be redrawn s%s (%f)idN(tfloatt
totalSteps(RRtstep((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pytupdate/scCs
tdfS(Nt(tFalse(R((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pytaskCdromName3scCstS(N(R(R((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pytchangeCdrom5s(RRt__doc__RRR(((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pyR-s		tDistUpgradeViewTextcBseZdZdddZdZdZdZdZdZ	dZ
dZd	Zd
Z
ddZddZd
ZdedZddZdZRS(s' text frontend of the distUpgrade tool cCst|_tjjds+dtjd<n|sOtjjtjd}nd}y!tj	d|tj
dWn$tk
r}tj
d|nXd|_tjjj|_t|_t|_t|_|jt_dS(NtDEBIAN_FRONTENDtdialogtmos /usr/share/locale/update-managersupdate-managersError setting locales (%s)i(R
tneeds_screentostenvironthas_keytpathtjointgetcwdRtbindtextdomaint
textdomaint	Exceptiontloggingtwarningt	last_stepRRRt
OpProgresst_opCacheProgressRt_fetchProgressRt_cdromProgressRt_installProgresst_handleExceptiontsyst
excepthook(Rtdatadirtlogdirt	localedirte((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pyR
;s"		cCsuddl}H|j|||}tjddj||jtdtddj|tjddS(Nisnot handled exception:
%ss
sA fatal error occurredsPlease report this as a bug and include the files /var/log/dist-upgrade/main.log and /var/log/dist-upgrade/apt.log in your report. The upgrade has aborted.
Your original sources.list was saved in /etc/apt/sources.list.distUpgrade.i(t	tracebacktformat_exceptionR)terrorR$t_R2texit(RttypetvaluettbR8tlines((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pyR1Us	cCs|jS(N(R.(R((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pytgetFetchProgressdscCs||j_|jS(N(R0t_cache(Rtcache((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pytgetInstallProgressfscCs|jS(N(R-(R((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pytgetOpCacheProgressiscCs|jS(N(R/(R((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pytgetCdromProgresskscCsH|GHtjjdS(N(R2tstdouttflush(Rtmsg((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pytupdateStatusmscCsHtdGHdS(NtAborting(R;(R((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pytabortqscCs
||_dS(N(R+(RR((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pytsetSteptscCs0|j||tdtdj|dS(Ns	Demoted:
s, (tinformationR;RR$(RtsummaryRIt	demotions((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pyt
showDemotionsvscCsGHt|GHt|GH|r+t|GHntdGHtjjdS(Ns To continue please press [ENTER](RR;R2tstdintreadline(RRORItextended_msg((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pyRNyscCs/Ht|GHt|GH|r+t|GHntS(N(RR(RRORIRT((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pyR:scCs{xoddgD]a}tjj|r
tj|dgdtj}|jj||jj|j	dSq
W|GHdS(s! helper to show output in a pagers/usr/bin/sensible-pagers	/bin/moret-RRN(
R R#texistst
subprocesstPopentPIPERRtwritetclosetwait(Rtoutputtpagertp((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pytshowInPagers

c
Cstj||||||Ht|GHt|jGHdtdtdfGxtrtjj}|j	j
jtdrtS|j	j
jtdrtS|j	j
jtdrd}t
|jdkr=|d	7}|ttd
djg|jD]}	|	j^qdd
7}nt
|jdkr|d	7}|ttddjg|jD]}	|	j^q{dd
7}nt
|jdkr|ttddjg|jD]}	|	j^qdd
7}|d	7}nt
|jdkri|d	7}|ttddjg|jD]}	|	j^qCdd
7}nt
|jdkr|d	7}|ttddjg|jD]}	|	j^qdd
7}n|j|ndtdtdfGqSWdS(Ns %s %ssContinue [yN] sDetails [d]tytntdRis
sNo longer supported: %s
t tsubsequent_indents  sRemove: %s
sRemove (was auto installed) %ssInstall: %s
sUpgrade: %s
s%s %s(RtconfirmChangesRtconfirmChangesMessageR;R
R2RRRStstriptlowert
startswithRtlenRPR$tnamettoRemovettoRemoveAutot	toInstallt	toUpgradeR`(
RROtchangesRPtdownloadSizetactionstremoval_boldtresR]R_((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pyRfsR
	!!!
2

2
2


2

2
tNocCsHt|GHt|GH|dkretdGtjj}|jjjtdratSt	StdGtjj}|jjjtdrt	StSdS(NRvsContinue [yN] RasContinue [Yn] Rb(
RR;R2RRRSRhRiRjR
R(RRORItdefaultRu((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pytaskYesNoQuestions
!
!cCs"|jtdtdddS(NsRestart requireds]To finish the upgrade, a restart is required.
If you select 'y' the system will be restarted.RwRv(RxR;(R((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pytconfirmRestartsN(RRRtNoneR
R1RARDRERFRJRLRMRQRNR:R`R
RfRxRy(((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pyR9s"										
.t__main__s89 packages are going to be upgraded.
You have to download a total of 82.7M.
This download will take about 10 minutes with a 1Mbit DSL connection and about 3 hours 12 minutes with a 56k modem.ReRdthellos	Icecream?RvtYesiitdpkgs--configures-atshorttlongsasfds afsdj af asdf asdf asf dsa fadsf asdf as fasf sextended
asfds afsdj af asdf asdf asf dsa fadsf asdf as fasf sextended
asfds afsdj af asdf asdf asf dsa fadsf asdf as fasf sextended
asfds afsdj af asdf asdf asf dsa fadsf asdf as fasf sextended
asfds afsdj af asdf asdf asf dsa fadsf asdf as fasf sextended
asfds afsdj af asdf asdf asf dsa fadsf asdf as fasf sextended
asfds afsdj af asdf asdf asf dsa fadsf asdf as fasf sextended
txxid()R2R)RWRR RRRtapt.progressRtDistUpgradeGettextR;tutilsRRRR	Rtbaset
CdromProgressRRRtviewRxR<RytCacheRCRAtfpRDtiptargvtpkgtmark_installtcommittgetTerminaltcallR:Rf(((sC/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeViewText.pyt<module>s@"