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/proc/self/root/usr/lib/python2.4/site-packages/yum/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/proc/self/root/usr/lib/python2.4/site-packages/yum/transactioninfo.pyo
mò
ýÉODc@s]dkTdfd„ƒYZdefd„ƒYZdefd„ƒYZdfd„ƒYZd	S(
(t*tTransactionDatacBsÔtZdZd„Zd„Zd„Zd„Zed„Zeeeeed„Z	eeeeed„Z
d„Zd	„Zd
„Z
d„Zd„Zd
„Zd„Zd„Zed„Zd„Zd„ZRS(sDData Structure designed to hold information on a yum Transaction SetcCsCg|_g|_g|_d|_h|_d|_t|_dS(Nt/i(	tselftflagstvsflagstprobFilterFlagstroottpkgdicttdebugtFalsetchanged(R((t7/usr/lib/python2.4/site-packages/yum/transactioninfo.pyt__init__s						cCst|iiƒƒS(N(tlenRRtvalues(R((Rt__len__$scCs>t|iƒdƒo|iƒiƒSnt|iƒƒSdS(Nt__iter__(thasattrRt
getMembersRtiter(R((RR'scCs|io	|GHndS(N(RR	tmsg(RR((Rt
debugprint-s
cCss|djo<g}x+|iiƒD]}|i|i|ƒq#W|Sn|ii|ƒo|i|SngSdS(sŒtakes an optional package tuple and returns all transaction members 
           matching, no pkgtup means it returns all transaction membersN(	tpkgtuptNonet
returnlistRRtkeystkeytextendthas_key(RRRR((RR2s
cCsN|id|d|d|d|d|ƒ}t|ƒo|di	SndSdS(sareturns the mode of the first match from the transaction set, 
           otherwise, returns NonetnametarchtepochtvertreliN(Rt
matchNaevrRRR R!R"ttxmbrsRtts_stateR(RRRR R!R"R$((RtgetModeBs
*
cCs|iiƒ}h}g}g}x|D]}
|
\}	}}}}
|dj	o"||	jod||
<q(qrn|dj	o"||jod||
<q(q¡n|dj	o"||jod||
<q(qÐn|dj	o"||jod||
<q(qÿn|dj	o"||
jod||
<q(q.q(q(Wx/|D]'}
|i|
ƒp|i|
ƒq9q9Wx"|D]}|i|i|ƒqkW|S(s4returns the list of packages matching the args aboveiN(RRRtcompletelistt
removedictRt
returnmembersRtntatetvtrRRRR R!R"RtappendtmatchedR(RRRR R!R"R+R(RR*RR-R'R.R,R)R0((RR#MsH














cCs¥|ii|iƒpg|i|i<nX|id|iƒx@|i|iD].}|i|ijo|idƒdSqOqOW|i|ii|ƒt	|_
dS(s add a package to the transactions'Package: %s.%s - %s:%s-%s already in tssPackage in same mode, skipping.N(RRRttxmemberRRtmemberR%R/tTrueR(RR1R2((Rtaddts
cCsj|ii|ƒp|id|fƒdSnx!|i|D]}d|i_q=W|i|=t	|_
dS(s%remove a package from the transactionsPackage: %s not in tsN(RRRRRttxmbrRtpotstateR3R(RRR5((Rtremove‚s
cCs=|ii|ƒo&t|i|ƒdjodSq9ndS(s tells if the pkg is in the classiiN(RRRRR(RR((Rtexistss
cCsM|i|ƒo9x6|id|ƒD]}|itjotSq#q#WntS(s,true if the pkgtup is marked to be obsoletedRN(	RR9RRR5toutput_statetTS_OBSOLETEDR3R
(RRR5((RtisObsoleted•scCs}g|_g|_g|_g|_g|_g|_g|_g|_g|_	x%|i
ƒD]}|it
jo2|io|i	i|ƒq|ii|ƒn[|itjp|itjox|io<x9|iD]*}||ijo|ii|ƒqÚqÚWn|io|ii|ƒq|ii|ƒnÃ|itjojx5|iD]*}||ijo|ii|ƒqXqXW|io|ii|ƒq|ii|ƒnI|itjo|ii|ƒn%|itjo|ii|ƒn|iiƒ|iiƒ|iiƒ|iiƒ|i	iƒ|iiƒ|iiƒ|iiƒ|iiƒq^WdS(sšreturns lists of transaction Member objects based on mode:
           updated, installed, erased, obsoleted, depupdated, depinstalled
           deperasedN(Rt
instgroupst
removedgroupstremovedt	installedtupdatedt	obsoletedt
depremovedtdepinstalledt
depupdatedRR5R:t	TS_UPDATEtisDepR/t
TS_INSTALLtTS_TRUEINSTALLtgroupstgtTS_ERASER;t
TS_OBSOLETINGtsort(RRKR5((Rt	makelistsžs^									

 












cCsMt|ƒ}t|_t|_t|i_d|_d|_	|i|ƒ|S(s€adds a package as an install but in mode 'u' to the ts
           takes a packages object and returns a TransactionMember ObjecttutuserN(tTransactionMemberR6R5tTS_AVAILABLEt
current_stateRHR:R7R%treasonRR4(RR6R5((Rt
addInstallÛs				
cCsMt|ƒ}t|_t|_t|i_d|_	d|_
|i|ƒ|S(sfadds a package as an install
           takes a packages object and returns a TransactionMember ObjecttiRQN(
RRR6R5RSRTRIR:RHR7R%RURR4(RR6R5((RtaddTrueInstallès				
cCsDt|ƒ}t|_t|_t|i_d|_|i
|ƒ|S(sfadds a package as an erasure
           takes a packages object and returns a TransactionMember ObjectR,N(RRR6R5RHRTRLR:R7R%RR4(RR6R5((RtaddEraseös			
cCsxt|ƒ}t|_t|_t|i_d|_|o-|i
i|idfƒ|i
i|ƒn|i|ƒ|S(seadds a package as an update
           takes a packages object and returns a TransactionMember ObjectRPtupdatesN(RRR6R5RSRTRFR:R7R%toldpot	relatedtoR/RRZRR4(RR6R[R5((Rt	addUpdates			
cCsjt|ƒ}t|_t|_t|i_d|_|i	i
|dfƒ|ii
|ƒ|i|ƒ|S(sxadds a package as an obsolete over another pkg
           takes a packages object and returns a TransactionMember ObjectRPt	obsoletesN(RRR6R5RSRTRMR:R7R%R\R/R[R^RR4(RR6R[R5((Rt
addObsoletings			
cCsjt|ƒ}t|_t|_t|i_d|_	|i
i|dfƒ|i
i|ƒ|i|ƒ|S(szadds a package as being obsoleted by another pkg
           takes a packages object and returns a TransactionMember ObjecttobsoletedbyN(RRR6R5RHRTR;R:R7RR%R\R/t
obsoleting_potobsoleted_byRR4(RR6RaR5((RtaddObsoleteds			
(t__name__t
__module__t__doc__R
RRRRRR&R#R4R8R9R<RORVRXRYR]R_Rc(((RRs&					'						=	
			tConditionalTransactionDatacBs tZdZd„Zd„ZRS(s<A transaction data implementing conditional package additioncCsh|_ti|ƒdS(N(RtconditionalsRR
(R((RR
/s	cCskti||ƒ|ii|iƒoAx>|i|iD](}|i|ƒ}|i
d|iƒq7WndS(NR6(RR4RR1RhRRR6RVt	condtxmbrtsetAsDep(RR1RiR6((RR45s(RdReRfR
R4(((RRg-s	tSortableTransactionDatacBsDtZdZd„Zd„Zd„Zd„Zd„Zd„ZRS(s@A transaction data implementing topological sort on it's memberscCs,g|_g|_g|_ti|ƒdS(N(Rt_sortedtpathtloopsRgR
(R((RR
>s			cCs±|ii|iƒt|_xo|iD]d}|i	d|i
ƒd}|itjo|i|iƒn|it
jo|i|ƒq&q&Wt|_|iid|i
ƒdS(NRi(RRmR/R5RtTX_GREYt
sortColourt
depends_onR6RRtvertext_doLooptTX_WHITEt_visittTX_BLACKRltinsert(RR5RrR6((RRuGs	
	cCs[|ii|ƒ|i|ii|idƒ}t|ƒdjo|ii|ƒndS(Niÿÿÿÿi(RRmR/RtindextloopRRn(RRRy((RRsSs cCs&t|_ti||ƒg|_dS(N(RtR1RpRgR4RRl(RR1((RR4Ys	cCsti||ƒg|_dS(N(RgR8RRRl(RR((RR8^scCss|io|iSng|_x>|iƒD]0}|itjog|_|i|ƒq+q+W|iiƒ|iS(N(	RRlRR5RpRtRmRutreverse(RR5((RRNbs
	
	
(	RdReRfR
RuRsR4R8RN(((RRk<s						RRcBs>tZdZd„Zed„Zd„Zd„Zd„ZRS(sVClass to describe a Transaction Member (a pkg to be installed/
       updated/erased).cCsÖ||_d|_d|_d|_d|_d|_d|_g|_	g|_
g|_g|_g|_
g|_g|_ddddddd	g|_x3|iD](}t|i|ƒ}t|||ƒq¦WdS(
NiRQRtrepoidRRR tversiontrelease(R6RRRTR%R:RGRUtprocessR\RqR^RbRZt
updated_byRJt_poattrtattrtgetattrtvaltsetattr(RR6RRƒ((RR
rs&														
cCsAd|_|o-|ii|idfƒ|ii|ƒndS(slsets the transaction member as a dependency and maps the dep into the
           relationship list attributeit	dependsonN(RRGR6R\R/RRq(RR6((RRj‰s
	cCsU|i|ijodSn|i|ijodSn|i|ijodSndS(Niiÿÿÿÿi(RRtother(RR†((Rt__cmp__’scCst|iiƒS(N(thashRR6R(R((Rt__hash__šscCs,d|i|i|i|i|i|ifS(Ns%s.%s %s-%s-%s - %s(RRRR R|R}R%(R((Rt__str__s(	RdReRfR
RRjR‡R‰RŠ(((RRRns				N(t	constantsRRgRkRR(RgRkRRR((Rt?s
ÿ2

Anon7 - 2021