MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/usr/share/yum-cli/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/share/yum-cli/output.pyo
m
ODc@sdZdkZdkZdkZdkZdklZdklZdk	l
Z
y
dkZWnnXdkZ
dfdYZdfdYZd	fd
YZedZdS(s'This handles actual output from the cliN(t_(s	TextMeter(s
sortPkgObjt	YumOutputcBstZdZdZddZdZdZdZdZ	dZ
d	Zd
Zddd
Z
dZdZdZdZdZdZRS(NcCssddddddddd	d
ddg}titi}|ttid
|dtid|}|S(NtJantFebtMartAprtMaytJuntJultAugtSeptOcttNovtDecs%mis %d %T (tmonthsttimet	localtimetnowtinttstrftimetret(tselfRRR((t/usr/share/yum-cli/output.pyt	printtime&s*0cCsC|idd|it|if|idd|idS(s,failure output for failovers from urlgrabberis%s: %ssTrying other mirror.N(Rterrorlogterrobjturltstrt	exception(RR((Rt
failureReport.s&cCst|||dS(N(tprogressbartcurrentttotaltname(RRR R!((RtsimpleProgressBar6scCsG|i}d|i|if}|id}d|||fGHdS(Ns%s.%strepoids%-40.40s %-22.22s %-16.16s(tpkgtprintVertverR!tarchtnatreturnSimpletrepo(RR$R*R(R&((Rt
simpleList9scCstd|iGHtd|iGH|idjotd|iGHntd|iGHtd|iGHtd|it	|i
GHtd|id	GHtd
|idGHtd|id
GHdGHdS(NsName   : %ssArch   : %st0sEpoch  : %ssVersion: %ssRelease: %ssSize   : %ssRepo   : %sR#sSummary: %stsummarysDescription:
 %stdescriptiont(RR$R!R'tepochtversiontreleaseRt
format_numbertfloattsizeR)(RR$((Rt
infoOutputAs$cCsP|\}}|i}d|i|if}|i}d||||fGHdS(stakes an updates or obsoletes tuple of pkgobjects and
           returns a simple printed string of the output and a string
           explaining the relationship between the tuple memberss%s.%ss%-35.35s [%.12s] %.10s %-20.20sN(tuotupt	changePkgtinstPkgtcompactPrintt	c_compactR!R't	i_compactR#tc_repot
changetype(RR7R>R9R<R=R8R;((RtupdatesObsoletesListNs	cCs|ddgjod}t|djomd}d|GH|itxN|D]B}|djo|i	|qO|djo|i
|qOqOWn|djoddgfSqndS(soutputs based on whatever outputType is. Current options:
           'list' - simple pkg list
           'info' - similar to rpm -qi outputtlisttinfoiis%ssNo Packages to listN(t
outputTypetthingslistedtlentlstR.tsortt
sortPkgObjR$RR+R6(RRER.RBR$RC((RtlistPkgsYs 	



cCsxStoKtd}|i}t|djp|dddgjoPqqWt|djp|ddjotSntSdS(s.gets a yes or no from the user, defaults to NosIs this ok [y/N]: itytnN(tTruet	raw_inputtchoicetlowerRDtFalse(RRM((Rtuserconfirmqs*
$cCsYd|iGH|idjod|iGHnt|iidjo,dGHx$|iiD]}d|GHq]Wnt|iidjo,dGHx$|iiD]}d|GHqWnt|iidjo,dGHx$|iiD]}d|GHqWnt|i	idjo5d	GHx-|i	i
D]\}}d|fGHq5WndS(
Ns

Group: %sR/s Description: %sis Mandatory Packages:s   %ss Default Packages:s Optional Packages:s Conditional Packages:(tgroupR!R.RDtmandatory_packagestkeystitemtdefault_packagestoptional_packagestconditional_packagest	iteritemstcond(RRQRYRT((RtdisplayPkgsInGroupss.cCsx|iD]}d|iGHt||idjodGHq
nxk||iD]Y}|||}d|i|GH|pdGHq\nx|D]}d|iGHqWq\Wq
WdS(s=take a list of findDeps results and 'pretty print' the outputspackage: %sis"  No dependencies for this packages  dependency: %ss   Unsatisfied dependencys   provider: %sN(	tresultsRSR$R:RDtreqtreqlistt
prcoPrintabletpo(RR[R\R$R]R_((Rt
depListOutputs"
it c
	Csddddddddd	g	}|o
d
}nd}d}d
}x&||jo|d}||}qGW|t|d}	|	d
jo||	}|||}nt|tdjpt|tdjo
d}n|djo
d}nd}|||||fS(s4Turn numbers into human-readable metric-like numbersR/tktMtGtTtPtEtZtYf1000.0f1024.0iiils%i%s%sf9.9499999999999993s%.1f%s%ss%.0f%s%sN(tsymbolstSItsteptthreshtdepthtnumberRDtdiffttypetformattspace(
RRoRkRsRnRrRjRlRmRp((RR3s*!





2


cCsV|idd|i||iddx"|D]}|idd|q4WdS(Nis

s
Matched from:s%s(RtlogR+R_tvaluesRT(RR_RuRT((Rt
matchcallbacks
cCsd}t}xO|D]G}y t|i}||7}Wqt}|i	ddPqXqW|p!|i
dd|i|ndS(s4Report the total download size for a set of packagesiis2There was an error calculating total download sizesTotal download size: %sN(ttotsizeROterrortpackagesR$RR5RKRRRtR3(RRyRwR$RxR5((RtreportDownloadSizes	cCs|iit|idjodd}nd}x]d	|iifd
|iifd|iifd|iifd
|ii	fd|ii
fgD]\}}|od|}nx|D]}
|
i\}}}}}	|
ii}|
i}t|
ii}|i|}d|||||f}x:|
iD]/}
d|
i |
i!|
if}||}q=W||}qW|o||}qqWdt|ii|iit|ii|ii	t|ii|ii
f}||}|S(s@returns a string rep of the  transaction in an easy-to-read way.is
=============================================================================
 %-22s  %-9s  %-15s  %-16s  %-5s
=============================================================================
tPackagetArchtVersiont
RepositorytSizeR/t
InstallingtUpdatingtRemovingsInstalling for dependenciessUpdating for dependenciessRemoving for dependenciess%s:
s  %-22s  %-9s  %-15s  %-16s  %5s
s     replacing  %s.%s %s

s
Transaction Summary
=============================================================================
Install  %5.5s Package(s)         
Update   %5.5s Package(s)         
Remove   %5.5s Package(s)         
N(R{R|R}R~R($RttsInfot	makelistsRDtoutt	installedtupdatedtremovedtdepinstalledt
depupdatedt
depremovedtactiontpkglistttotalmsgttxmbrtpkgtupRJtatetvtrR_R%tevrR#R4R5tpkgsizeR3tmsgt	obsoletestobspoR!R'tappendedR-(RRR-RRR#RRJRRRRRRRR5RRR((RtlistTransactions6
a	
U	
cCsd}
|iixd|iifd|iifd|iifd|iifd|iifd|ii	fd|ii
fgD]}\}}	t
|	d	jo^|
d
|7}
xM|	D]A}|i\}}}}}d|||||f}|
|7}
qWqqW|
S(NR/tRemovedsDependency Removedt	InstalledsDependency InstalledtUpdatedsDependency UpdatedtReplacedis
%s:s %s.%s %s:%s-%s(RRRRRRRRRRt	obsoletedRRRDRRRJRRRRR(RRRRJRRRRRRR((RtpostTransactionOutput"s
pcCs|iidjptiio |iidd|i_	n>|iit
dtit|i|i
|i|i_	|ifhf}|ii|t|i|i
}||_dS(sWsets up the progress callbacks and various 
           output bars based on debug levelitfoN(Rtconft
debugleveltsyststdouttisattytrepostsetProgressBartNonetcallbackt	TextMetertCacheProgressCallbackRtRtfilelogRtfreporttsetFailureCallbacktDepSolveProgressCallBacktdscbt
dsCallback(RRR((RtsetupProgessCallbacks8s$cCs
d}|S(s don't ask sR
        
                        7 Day Sweet Pickle Recipe

Recipe By     : Simply Good Cooking Pennsylvanis Dutch Style
Serving Size  : 1    Preparation Time :0:00
Categories    : Canned                           Pickles

  Amount  Measure       Ingredient -- Preparation Method
--------  ------------  --------------------------------
   7      pounds        cucumber
                        water to cover
   1      quart         vinegar
   8      cups          sugar
   2      tablespoons   salt
   2      tablespoons   mixed pickle spices

Wash cucumbers & cover with boiling water.  Let stand 24 hours and repeat
process daily using fresh hot water until the 5th day.  On the 5th morning,
cut cucumbers into 1/4 inch rings.  Prepare vinegar brine: bring vinegar,
sugar, salt & spices to a boil.  Pour over cucmbers.  let stand 24 hours.
The next morning, drain off brine; reheat, add cucmbers & bring to a boil.
Pack in jars & seal while hot.

                   - - - - - - - - - - - - - - - - - -

NOTES : This should be processed in a boiling water bath to avoid risk of
contamination.        


N(trecipe(RR((RtpickleRecipeOs(t__name__t
__module__RRRR"R+R6R?RHRPRZR`R3RvRzRRRR(((RR$s"				
					(			3		RcBsqtZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
RS(sFprovides text output callback functions for Dependency Solver callbackcCs||_||_d|_dS(s8requires yum-cli log and errorlog functions as argumentsiN(RtRRtloops(RRtR((Rt__init__ws		c
	Csshdd<dd<dd<dd<}|\}}}}}	||}|i
d	d
|||||	|fdS(NtiRtuRtoRRterasedis(---> Package %s.%s %s:%s-%s set to be %s(tmodedictRRJRRRRtmodetmodetermRRt(
RRRRRRRRJRR((RtpkgAdded}s*
cCs|id7_dS(Ni(RR(R((RtstartscCs|idddS(Nis--> Running transaction check(RRt(R((RttscheckscCs:|id7_|idd|idd|idS(Niis6--> Restarting Dependency Resolution with new changes.is---> Loop Number: %d(RRRt(R((RtrestartLoopscCs|idddS(Nis"--> Finished Dependency Resolution(RRt(R((RtendscCs|idd||fdS(Nis---> Processing Dependency: %s for package: %s(RRtt
formatted_reqR!(RR!R((RtprocReqscCs|idd|dS(Nis--> Unresolved Dependency: %s(RRtR(RR((Rt
unresolvedscCs|idd||fdS(Nis(--> Processing Conflict: %s conflicts %s(RRtR!tconfname(RR!R((RtprocConflictscCs|idddS(NisC--> Populating transaction set with selected packages. Please wait.(RRt(R((RttransactionPopulationscCs|idd|dS(Nis<---> Downloading header for %s to pack into transaction set.(RRtR!(RR!((RtdownloadHeaders(RRt__doc__RRRRRRRRRRR(((RRts											RcBsAtZdZedZdZdZdZedZRS(sP
    The class handles text output callbacks during metadata cache updates.
    cCs||_||_||_dS(N(RtRRR(RRtRR((RRs		cCs|i||dS(N(RRttleveltmessage(RRR((RRtscCs"|io|i||ndS(N(RRRR(RRR((RRs
cCs"|io|i||ndS(N(RRRR(RRR((RRs
cCst|||dS(N(RRR R!(RRR R!((RRs(	RRRRRRtRRR(((RRs			cCsd}tiipdSn|djo
d}n&|djo|d|}nd}t|d}||}|djod|||f}nd||||f}||jotii
|n||jotii
dntiidS(	ssimple progress bar 50 # markst#Niidis
%-50s %d/%ds
%-10.10s: %-50s %d/%ds
(tmarkRRRRtpercentR Rt	numblocksthashbarR!Rtoutputtwritetflush(RR R!RRRRR((RRs&






(Rtostos.pathRRti18nRturlgrabber.progressRtyum.miscRGtreadlinet
yum.ErrorstyumRRRRR(RRGRRRRRRRRRR((Rt?s"				



	Q3

Anon7 - 2021