Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/apt/progress/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/apt/progress/old.pyc

ó
WâRc@s.dZddlZddlZddlZddlmZmZddlZddlm	Z	m
Z
gZde	jfd„ƒYZdee
jfd„ƒYZ
d	efd
„ƒYZdefd„ƒYZd
efd„ƒYZde	jfd„ƒYZdee	jfd„ƒYZdefd„ƒYZdS(s«Deprecated progress reporting classes.

This module provides classes for compatibility with python-apt 0.7. They are
completely deprecated and should not be used anymore.
iÿÿÿÿN(tAttributeDeprecatedBytfunction_deprecated_by(tbasettextt
OpProgresscBs/eZdZd„ZedƒZedƒZRS(s7Abstract class to implement reporting on cache opening.cCs*tjj|ƒtjdtddƒdS(Ns&apt.progress.OpProgress is deprecated.t
stackleveli(RRt__init__twarningstwarntDeprecationWarning(tself((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyR+s	tsuboptop(t__name__t
__module__t__doc__RRtsubOptOp(((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyR(s	tOpTextProgresscBseZdZd„ZRS(s/A simple text based cache open reporting class.cCs*tjj|ƒtjdtddƒdS(Ns*apt.progress.OpTextProgress is deprecated.Ri(RRRRRR	(R
((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyR7s	(R
RRR(((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyR4st
FetchProgresscBsšeZdZedƒ\ZZZZZide6de6de6de6de6Z	d„Z
d„Zd	„Zd
„Z
d„Zd„Zd
„Zd„ZRS(s&Report the download/fetching progress.itDonetQueuedtFailedtHittIgnoredcCsYd|_d|_d|_d|_d|_d|_d|_tjdt	ddƒdS(Ngis)apt.progress.FetchProgress is deprecated.Ri(
tetatpercenttcurrentBytestcurrentItemst
totalBytest
totalItemst
currentCPSRRR	(R
((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyREs								cCsdS(s Called when the fetching starts.N((R
((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pytstartQscCsdS(s(Called when all files have been fetched.N((R
((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pytstopTscCsdS(swCalled when the status of an item changes.

        This happens eg. when the downloads fails or is completed.
        N((R
turitdescrtshort_descrtstatus((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pytupdateStatusWscCsdS(sÅCalled when the status of an item changes.

        This happens eg. when the downloads fails or is completed. This
        version include information on current filesize and partial size
        N((R
R"R#R$R%t	file_sizetpartial_size((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pytupdate_status_full]scCsa|j|jdt|j|jƒ|_|jdkr]|j|jt|jƒ|_ntS(soCalled periodically to update the user interface.

        Return True to continue or False to cancel.
        gY@i(	RRtfloatRRRRRtTrue(R
((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pytpulsees
cCsa|j|jdt|j|jƒ|_|jdkr]|j|jt|jƒ|_ntS(s´Called periodically to update the user interface.
        This function includes details about the items being fetched
        Return True to continue or False to cancel.

        gY@i(	RRR*RRRRRR+(R
titems((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pytpulse_itemsqs
cCsdS(sreact to media change events.N((R
tmediumtdrive((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pytmediaChange~s(R
RRtrangetdlDonetdlQueuedtdlFailedtdlHitt	dlIgnoredtdlStatusStrRR R!R&R)R,R.R1(((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyR=s							
tTextFetchProgresscBs;eZdZd„Zd„Zd„Zd„Zd„ZRS(s3 Ready to use progress object for terminal windows cCstj|ƒi|_dS(N(RRR-(R
((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyR…s
cCs9||jkr(d|j||fGHn||j|<dS(swCalled when the status of an item changes.

        This happens eg. when the downloads fails or is completed.
        s
%s %sN(R4R8R-(R
R"R#R$R%((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyR&‰scCsytj|ƒ|jdkrSd|jtj|jƒtjt|jƒƒf}n
d|j}d|Gt	j
jƒtS(soCalled periodically to update the user interface.

        Return True to continue or False to cancel.
        is[%2.f%%] %sB/s %ss%2.f%% [Working]s
%s(
RR,RRtapt_pkgtsize_to_strttime_to_strtlongRtsyststdouttflushR+(R
ts((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyR,’s
	

cCs	dGHdS(s(Called when all files have been fetched.s
Done downloading            N((R
((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyR!£scCsd||fGHtƒdkS(sreact to media change events.sSMedia change: please insert the disc labeled '%s' in the drive '%s' and press entertctC(RBRC(t	raw_input(R
R/R0((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyR1§s(R
RRRR&R,R!R1(((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyR9‚s					t
CdromProgresscBs2eZdZd„Zd„Zd„Zd„ZRS(sReport the cdrom add progress.cCstjdtddƒdS(Ns)apt.progress.CdromProgress is deprecated.Ri(RRR	(R
((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyR²s	cCsdS(sAsk for a cdrom nameN((R
((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pytaskCdromName¶scCsdS(sChange cdromN((R
((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pytchangeCdrom¹scCsdS(sUpdate.N((R
Rtcurrent((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pytupdate¼s(R
RRRRFRGRI(((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyRE¯s
			tDumbInstallProgresscBsMeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	RS(sReport the install progress.cCs*tjj|ƒtjdtddƒdS(Ns-apt.progress.*InstallProgress are deprecated.Ri(RtInstallProgressRRRR	(R
((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyRÃs	cCs„t|dƒr:t|dƒr:tj|jdƒ|_nt|dƒrtt|dƒrttj|jdƒ|_ntjj	|ƒS(Ntwritefdtwrite_streamtwtstatusfdt
status_streamtr(
thasattrtostfdopenRLRMRORPRRKtupdate_interface(R
((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pytupdateInterfaceÈs
cCs
|jƒS(N(RV(R
((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyRUÒscCstjj|ƒS(N(RRKtstart_update(R
((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pytstartUpdateÕscCs
|jƒS(N(RX(R
((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyRWØscCstjj|ƒS(N(RRKt
finish_update(R
((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pytfinishUpdateÛscCs
|jƒS(N(RZ(R
((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyRYÞs(
R
RRRRVRURXRWRZRY(((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyRJÀs		
				RKcBs>eZdZedƒZd„Zd„Zd„Zd„ZRS(s©An InstallProgress that is pretty useful.

    It supports the attributes 'percent' 'status' and callbacks for the dpkg
    errors and conffiles and status changes.
    tselect_timeoutcCstjj||||ƒS(N(RRKt
status_change(R
tpkgRR%((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pytstatusChangeëscCs|j|||ƒS(N(R^(R
R]RR%((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyR\îscCstjj|ƒS(N(RRKt
wait_child(R
((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyt	waitChildñscCs
|jƒS(N(R`(R
((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyR_ôs(	R
RRRt
selectTimeoutR^R\R`R_(((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyRKâs			tDpkgInstallProgresscBs#eZdZdZdZd„ZRS(s9Progress handler for a local Debian package installation.tcCs>||_tjj|ƒjdƒd|_tjj||ƒS(s*Start installing the given Debian package.t_i(	tdebfileRStpathtbasenametsplittdebnameRRKtrun(R
Re((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyRjþs	"(R
RRReRiRj(((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyRbøs(RRSR>R:tapt.deprecationRRRtapt.progressRRt__all__RRtobjectRR9RERKRJRb(((s4/usr/lib/python2.7/dist-packages/apt/progress/old.pyt<module>s	E-"