ok

Mini Shell

Direktori : /proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/yum/
Upload File :
Current File : //proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/yum/transactioninfo.pyc

�
8M�bc@s�dZddlTddlmZmZddlmZddlmZddl	Z	ddl
Z
ddlZddlZdefd��YZ
d	fd
��YZdefd��YZd
efd��YZdfd��YZdS(sK
Classes and functions for manipulating a transaction to be passed
to rpm.
i����(t*(tPackageSacktPackageSackVersion(tYumInstalledPackage(tYumAvailablePackageSqliteNtGetProvReqOnlyPackageSackcBsAeZed�Zd�Zd�Zd�Zd�Zd�ZRS(cCstj|�||_dS(N(Rt__init__t_need_index_files(tselft
need_files((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR(s
cCsWxP|jdt�D]<}x3|j|dt�D]}|j|j||�q/WqWdS(Ntprimary_only(treturnFileTypestTruetreturnFileEntriest_addToDictAsListt	filenames(Rtobjtftypetfile((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt!__addPackageToIndex_primary_files,scCsKxD|j�D]6}x-|j|�D]}|j|j||�q#Wq
WdS(N(RR
RR(RRRR((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt__addPackageToIndex_files0scCs�x?|jd�D].\}}\}}}|j|j||�qWx?|jd�D].\}}\}}}|j|j||�qRW|jr�|j|�n
|j|�dS(Ntprovidestrequires(t
returnPrcoRRRRt3_GetProvReqOnlyPackageSack__addPackageToIndex_filest;_GetProvReqOnlyPackageSack__addPackageToIndex_primary_files(RRtntfltetvtr((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt_addPackageToIndex4s((	cCs=x6|jD]+}x"|j|D]}|j|�qWq
WdS(N(t
pkgsByRepoR(RtrepoidR((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt__buildFileIndexes>scCsU|jrEtj|�rEt|_|jrEi|_|j�qEntj||�S(N(	Rtmisctre_primary_filenameRtindexesBuiltRt,_GetProvReqOnlyPackageSack__buildFileIndexesRtsearchFiles(Rtname((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR'Bs			(	t__name__t
__module__tFalseRRRRR&R'(((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR's			
	tTransactionDatac	Bs�eZdZd�Zd�Zd�Zd�Zd�Zedd�dd	�d
d�dd
�Z	d�Z
d/d/d�Zd/d�Z
d�Zd�Zed�Zd/d/d/d/d/d�Zd/d/d/d/d/d�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zeed�Zd�Zd�Zd �Zd/d!�Zd"�Z d#�Z!d$�Z"d%�Z#d/d&�Z$d/d0d'�Z%d/d1d(�Z&d/d2d)�Z'd/d3d*�Z(d/d4d+�Z)d/d5d,�Z*d-�Z+d.�Z,RS(6sDData Structure designed to hold information on a yum Transaction SetcCs]g|_g|_g|_d|_i|_i|_t�|_d|_t	|_
g|_d|_t
j
�|_t
j
�|_i|_d|_d|_d|_d|_t�|_t�|_g|_g|_g|_g|_g|_g|_g|_ g|_!g|_"g|_#g|_$g|_%g|_&g|_'d|_(d|_)dS(Nt/i(*tflagstvsflagstprobFilterFlagstroottpkgdictt	_namedicttsett_unresolvedMemberstdebugR+tchangedtinstallonlypkgst
state_counterttimet
tm_createdt
tm_changedtconditionalstNonetrpmdbt_pkgSackt_pkgSackCtortpkgSackPackagesRt	localSackRt_inSackt
instgroupst
removedgroupstinstenvironmentstremovedenvironmentstremovedt	installedtupdatedt	obsoletedt
depremovedtdepinstalledt
depupdatedtreinstalledt
downgradedtfailedt_future_rpmdbvt_check_future_rpmdbv(R((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyRMsH																														cCs+t|_|jd7_tj�|_dS(Ni(RR7R9R:R<(R((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt_changedws	cCs
t|j�S(N(tlenR2(R((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt__len__|scCs9t|j�d�r%|j�j�St|j��SdS(Nt__iter__(thasattrt
getMembersRXtiter(R((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyRXscCs>|jdk	r|jS|jdk	r7|j�|_n|jS(N(R@R>RA(R((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt_getPkgSack�s
tfgetcCs
|j�S(N(R\(R((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt<lambda>�stfsetcCst|d|�S(NR@(tsetattr(Rtvalue((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR^�stfdelcCst|dd�S(NR@(R`R>(R((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR^�stdocsPackage sack objectcCs|jr|GHndS(N(R6(Rtmsg((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt
debugprint�s	cst�fd�|j|��S(Ncs
|j�kS(N(toutput_state(tp(t
output_states(s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR^�s(tfilterRZ(RtpkgtupRh((Rhs7/usr/lib/python2.7/site-packages/yum/transactioninfo.pytgetMembersWithState�scCsfg}|dkr<xM|jj�D]}|j|�q"Wn&||jkrb|j|j|�n|S(s�takes an optional package tuple and returns all transaction members 
           matching, no pkgtup means it returns all transaction membersN(R>R2t
itervaluestextend(RRjt
returnlisttmembers((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyRZ�scCstt|j��S(N(tlisttsortedR5(R((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pytgetUnresolvedMembers�scCs|jj|�dS(N(R5tdiscard(Rttxmbr((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pytmarkAsResolved�scCsL|s!t|�t|j�krH|jj�|jj|j��tStS(N(RVR5tcleartupdateRZRR+(Rthard((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt
resetResolved�s
!
c	Cs�|jd|d|d|d|d|�}t|�s:d	Sg}x|D]}|j|j�qGWd|krqdSd|kr�dS|dSd	S(
sareturns the mode of the first match from the transaction set, 
           otherwise, returns NoneR(tarchtepochtvertreltutiiN(t
matchNaevrRVR>tappendtts_state(	RR(RzR{R|R}ttxmbrststatesRt((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pytgetMode�s*
c
Cs|dkr|j�}nJ|jj|g�}|dkre|dkre|dkre|dkre|Sg}x�|D]�}|j\}	}
}}}
|dk	r�||
kr�qrn|dk	r�||kr�qrn|dk	r�||kr�qrn|dk	r||
krqrn|j|�qrW|S(s4returns the list of packages matching the args aboveN(R>RZR3tgetRjR�(RR(RzR{R|R}R�tresultRtRtaRRR((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR��s$0
c	Cs||j|�}|sY|jdd�}t|�dkrY|j|d|d�}qYn|sWg}|jdk	r�|jjd|g�}n|r�|jdk	r�|jjd|g�}n|s�|jjd|g�}nxs|D]h}|j|j	|j
��xF|jj�D]5\}}||kr|j
|�||j|<qqWq�Wnx|D]}|j
|j
�q^W|S(s� Remove these packages from the transaction. This is more user
            orientated than .remove(). Used from kickstart/install -blah. t.iiitpatternsN(R�trsplitRVRDR>treturnPackagestpkgSackR?RmRZRjR=t	iteritemstremove(	RtpatternR�tnatpkgstpkgtreqtcpkgsRt((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pytdeselect�s, 


cCs&|jdko%t|jttf�S(NR~R(R~R(R�t
isinstancetpoRR(Rttxmember((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt_isLocalPackagescs?|j�jkrtS|j}t�fd�|�r;tStS(s�takes a packageObject, returns 1 or 0 depending on if the package 
           should/can be installed multiple times with different vers
           like kernels and kernel modules, for examplecs
|�jkS(N(R8(tprov(R(s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR^s(R(R8Rtprovides_namesRiR+(RR�R((Rs7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt_allowedMultipleInstallss	cCsx$|jD]}|j||j�q
W|j|jkrLg|j|j<nR|jd|j�x;|j|jD])}|j|jkrq|jd�dSqqW|j|jj|�|jj	|j
g�j|�|j�|j|�r|j
j|j�n$t|jt�r'|jd7_n|jdk	rv|jtkrv|jj�s`d|_qv|jj|j�n|j
|jkr�xf|j|j
D]Q}|jjd|�r�q�nx-|jd|�D]}|jd|j�q�Wq�Wn|jj|�dS(s add a package to the transactions'Package: %s.%s - %s:%s-%s already in tssPackage in same mode, skipping.NiR�(tupdatest
addUpdatedR�RjR2ReR�R�R3t
setdefaultR(RUR�RCt
addPackageR�RRBRDR>RftTS_INSTALL_STATESthave_fastReturnFileEntriesR=R?tcontainstinstall_methodtsetAsDepR5tadd(RR�toldpotmemberR�t	condtxmbr((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR�s6

cCs)||jkr'|jd|f�dSx�|j|D]�}d|j_|j|�rl|jj|j�n$t|jt	�r�|j
d8_
n|jdk	r�|jt
kr�|jj|j�n|j|jj|�|jj|�q5W|j|=|j|ds|j|d=n|j�dS(s%remove a package from the transactionsPackage: %s not in tsNii(R2ReR>R�tstateR�RCt
delPackageR�RRBRDRfR�R3R(R�R5R�RU(RRjRt((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR�Cs"
cCs3||jkr/t|j|�dkr/dSndS(s tells if the pkg is in the classii(R2RV(RRj((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pytexistsXscCsF|j|�rBx0|jd|�D]}|jtkr"tSq"WntS(s,true if the pkgtup is marked to be obsoletedRj(R�RZRftTS_OBSOLETEDRR+(RRjRt((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pytisObsoleted`s
cCs�g|_g|_g|_g|_g|_g|_g|_g|_g|_g|_	g|_
g|_g|_g|_
x�|j�D]�}|jtkr�|jr�|j
j|�q|jj|�q�|jttfkr�|r	|jr	|jj|�q�n|r.|jr.|jj|�q�n|jrpx6|jD](}||jkrA|jj|�qAqAWn|jr�x6|jD](}||jkr�|jj|�q�q�Wn|jr�|jdkr�|j	j|�q|jj|�q�|jtkr�|r|jrq�nx3|jD](}||jkr|jj|�qqWx3|jD](}||jkrT|jj|�qTqTW|jr�|jj|�q|jj|�q�|jtkr�|jj|�q�|jtkr�|jj|�q�|jtkr�|j
j|�q�q�W|jj�|jj�|jj�|jj�|j
j�|j	j�|jj�|jj�|jj�|jj�|jj�|jj�|jj�|j
j�dS(s�returns lists of transaction Member objects based on mode:
           updated, installed, erased, obsoleted, depupdated, depinstalled
           deperasedtuserN( RERFRGRHRIRJRKRLRMRNRORPRQRRRZRft	TS_UPDATEtisDepR�t
TS_INSTALLtTS_TRUEINSTALLt	reinstallt
downgradestgroupstenvironmentstreasontTS_ERASEt
downgraded_byR�t
TS_OBSOLETINGt	TS_FAILEDtsort(Rtinclude_reinstalltinclude_downgradeRttgtevg((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt	makelistsis�																		












cCs�|j|�r|j|�St|�}t|_t|_t|j_d|_	|j
jd|j�rst|_
n|j|�|j|�|S(s�adds a package as an install but in mode 'u' to the ts
           takes a packages object and returns a TransactionMember ObjectR~R�(R�taddTrueInstalltTransactionMembertTS_AVAILABLEt
current_stateR�RfR�R�R�R?R�RR�tfindObsoletedByThisMemberR�(RR�Rt((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt
addInstall�s
			

cCsht|�}t|_t|_t|j_d|_|j	j
d|j�rWt|_n|j
|�|S(sfadds a package as an install
           takes a packages object and returns a TransactionMember ObjectRR�(R�R�R�R�RfR�R�R�R�R?R�RR�R�(RR�Rt((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR��s			
cCsDt|�}t|_t|_t|j_d|_|j|�|S(sfadds a package as an erasure
           takes a packages object and returns a TransactionMember ObjectR(	R�R�R�R�RfR�R�R�R�(RR�Rt((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pytaddErase�s			
cCs�|j|�r|j|�St|�}t|_t|_t|j_d|_	|r~|j
j|df�|jj|�n|j
|�|j|�|S(seadds a package as an update
           takes a packages object and returns a TransactionMember ObjectR~R�(R�R�R�R�R�R�RfR�R�R�t	relatedtoR�R�R�R�(RR�R�Rt((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt	addUpdate�s
			

cCs�|j|�}|jj|df�|jj|�|j|�}|s^|j|j�dSd|jkr|jj	|_	n|jj|df�|j
j|�||fS(sqadds a package as an downgrade takes a packages object and returns
           a pair of TransactionMember ObjectstdowngradedbyR�R�N(R�R�R�R�R�R�RjR>t
yumdb_infoR�R�(RR�R�titxmbrtatxmbr((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pytaddDowngrade
scCs�t|�}t|_t|_t|j_d|_|jj	|df�|j
j	|�d|jkrz|jj|_n|j
|�|S(sxadds a package as being updated by another pkg
           takes a packages object and returns a TransactionMember Objecttudt	updatedbyR�(R�R�R�t
TS_UPDATEDRfR�R�R�R�R�t
updated_byR�R�R�(RR�tupdating_poRt((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR�s			
cCs�t|�}t|_t|_t|j_d|_|jj	|df�|j
j	|�|jjd|j�r}t
|_n|j|�|S(sxadds a package as an obsolete over another pkg
           takes a packages object and returns a TransactionMember ObjectR~t	obsoletesR�(R�R�R�R�RfR�R�R�R�R�R�R?R�RR�R�(RR�R�Rt((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt
addObsoleting1s			
cCs�t|�}t|_t|_t|j_d|_|jj	|df�|j
j	|�d|jkrz|jj|_n|j
|�x[|j|jtg�D]A}||jkr�q�n|jj	|df�|jj	|�q�W|S(szadds a package as being obsoleted by another pkg
           takes a packages object and returns a TransactionMember ObjecttodtobsoletedbyR�R�(R�R�R�R�RfR�R�R�R�R�tobsoleted_byR�R�R�RkRjR�R�(RR�t
obsoleting_poRttotxmbr((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pytaddObsoletedCs"			
cCs||_||_||_dS(N(R?R@RA(RR?R�tpkgSackCtor((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pytsetDatabases\s		cCs�i}|jsn�|jdkrux�|jj|||�j�D].\}}|j|jt�r@|||<q@q@Wn9x6|jj|||�j�D]\}}|||<q�W|j	|j
j|||��|S(sbreturn dict { packages -> list of matching provides }
        searches in packages to be installedN(RBRDR>R�tgetProvidesR�RkRjR�RwRC(RR(tflagtversionR�R�thits((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pytgetNewProvidesas	++cCs[i}xN|jj|||�j�D].\}}|j|jt�s%|||<q%q%W|S(s�return dict { packages -> list of matching provides }
        searches in packages already installed and not going to be removed(R?R�R�RkRjtTS_REMOVE_STATES(RR(R�R�R�R�R�((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pytgetOldProvidesqs
+cCs5|j|||�}|j|j|||��|S(s5return dict { packages -> list of matching provides }(R�RwR�(RR(R�R�R�((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR�zscCs�i}|jsn�|jdkrux�|jj|||�j�D].\}}|j|jt�r@|||<q@q@Wn9x6|jj|||�j�D]\}}|||<q�W|j	|j
j|||��|S(sbreturn dict { packages -> list of matching provides }
        searches in packages to be installedN(RBRDR>R�tgetRequiresR�RkRjR�RwRC(RR(R�R�R�R�R�((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pytgetNewRequires�s	++cCs[i}xN|jj|||�j�D].\}}|j|jt�s%|||<q%q%W|S(s�return dict { packages -> list of matching provides }
        searches in packages already installed and not going to be removed(R?R�R�RkRjR�(RR(R�R�R�R�R�((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pytgetOldRequires�s
+cCs5|j|||�}|j|j|||��|S(s5return dict { packages -> list of matching provides }(R�RwR�(RR(R�R�R�((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR��scCs�|jdk	r4|j\}}||jkr4|Sn|jj�}i}xI|jdt�D]5}|jr�|j||jj	<n|j
|j�q\W|jj�t�}g}x�t
|�D]�}|jdkr|j�}	|j||	�|j
|j	|	f�q�n|j|j	t�r&q�n|j	|kr;q�n|j}
d}	d|
krwd|
krw|
j|
jf}	n|j
|j	|	f�|j||	�q�W|jj|�|j|f|_|S(s� Return a simple version for the future rpmdb. Works like
            rpmdb.simpleVersion(main_only=True)[0], but for the state the rpmdb
            will be in after the transaction. RJt
checksum_typet
checksum_dataN(RSR>R9R?R�RkR�R�R�RjR�tpreloadPackageChecksumsRRqR!treturnIdSumRwR�R�R�R�t transactionCachePackageChecksums(RtsctretR�t_reinstalled_pkgtupsRttmaintpkg_checksum_tupsR�tcsumtydbi((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pytfutureRpmDBVersion�s@	
		cCs{xt|jjD]f}x]|jjd|�D]F}|j|jg�r)|j||j�t|_t|j_q)q)Wq
WdS(s>addObsoleted() pkgs for anything that this txmbr will obsoleteR(N(	R�tobsoletes_namesR?tsearchNevratobsoletedByR�R�RfR�(RRttobs_nR�((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR��s	N(NNN(NNN(NNN(NNN(NNN(NNN(-R)R*t__doc__RRURWRXR\tpropertyR�ReR>RkRZRrRuR+RyR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�(((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR,KsV	*											$	
		&				\										4tConditionalTransactionDatacBseZdZd�ZRS(s<A transaction data implementing conditional package additioncCs$tjdtj�tj|�dS(NsCConditionalTransactionData will go away in a future version of Yum.(twarningstwarntErrorstYumFutureDeprecationWarningR,R(R((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR�s	
(R)R*R�R(((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR��stSortableTransactionDatacBsDeZdZd�Zd�Zd�Zd�Zd�Zd�ZRS(s@A transaction data implementing topological sort on it's memberscCs,g|_g|_g|_tj|�dS(N(t_sortedtpathtloopsR,R(R((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR�s			cCs�|jj|j�t|_xk|jD]`}|jd|j�d}|jtkrg|j|j�n|jt	kr&|j
|�q&q&Wt|_|jj
d|j�dS(NRji(RR�R(tTX_GREYt
sortColourt
depends_onRZRjt_doLooptTX_WHITEt_visittTX_BLACKRtinsert(RRtR�tvertex((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR�s		cCsY|jj|�|j|jj|jd�}t|�dkrU|jj|�ndS(Ni����i(RR�tindexRVR(RR(tloop((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR
�s cCs&t|_tj||�g|_dS(N(RRR,R�R(RR�((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR�s	cCstj||�g|_dS(N(R,R�R(RRj((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR�	scCsl|jr|jSg|_x<|j�D].}|jtkr&g|_|j|�q&q&W|jj�|jS(N(RRZRRRRtreverse(RRt((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR�
s			
(	R)R*R�RRR
R�R�R�(((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR�s						R�cBs\eZdZd�Zd	ed�Zd�Zd�Zd�Z	d�Z
d�Zd�ZRS(
sVClass to describe a Transaction Member (a pkg to be installed/
       updated/erased).cCsE||_d|_d|_d|_d|_d|_d|_g|_g|_	g|_
g|_g|_g|_
g|_g|_t|_g|_g|_d|_ddddddd	g|_x3|jD](}t|j|�}t|||�q�W|jd
krA|jjd�|jjd�|jjd
�ndS(NiR�RjR!R(RzR{R�treleaseRJt	from_repot
releasevert
changed_by(R�R>R�R�RfR�R�tprocessR�R	R�R�R�R�R�R�R+R�R�R�trepopkgt_poattrtgetattrR`R!R�R�(RR�tattrtval((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyRs8																			cCsE|sd|_n|rA|jj|df�|jj|�ndS(slsets the transaction member as a dependency and maps the dep into the
           relationship list attributeit	dependsonN(R�R�R�R	(RR�trelonly((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR�Bs
cCs�g}x4|jD])}|d|kr,qn|j|�qW||_g}x0|jD]%}||krnqVn|j|�qVW||_dS(slsets the transaction member as a dependency and maps the dep into the
           relationship list attributeiN(R�R�R	(RR�tnreltotdatatndepon((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt	removeDepLs	cCst|j|j�S(N(tcmpR�(Rtother((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt__cmp__^scCs
tj|�S(N(tobjectt__hash__(R((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR'ascCs,d|j|j|j|j|j|jfS(Ns%s.%s %s:%s-%s - %s(R(RzR{R�RR�(R((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt__str__dscCs)d|jjt|�tt|��fS(Ns<%s : %s (%s)>(t	__class__R)tstrthextid(R((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt__repr__hsc
CsNd|j|j|j|j|j|jfd|jjjd|j	d|j
dt|j�d|j
dt|j�g}|jr|dg7}xj|jD]_\}}d	}t|t�r�d
}n|d|j|j|j|j|j||fg7}q�W|dg7}nx�d
ddddddgD]�}t||�}|r.|d|g7}x^|D]V}d	}t|t�r�d
}n|d|j|j|j|j|j|fg7}qaW|dg7}q.q.W|jr�|ddj|j�g7}n|jr!|ddj|j�g7}n|jrA|d|jg7}ndj|�S(Nsmbr: %s,%s,%s,%s,%s %s
s  repo: %s
s  ts_state: %s
s  output_state: %s
s  isDep: %s
s
  reason: %s
s  reinstall: %s
s  relatedto:R�Rs %s,%s,%s,%s,%s@%s:%ss
R	R�R�R�R�R�R�s  %s:s %s,%s,%s,%s,%s@%ss
  groups: %s
t s  environments: %s
s  repopkg: %s
t(R(RzR{R�RR�R�trepoR,R�RftboolR�R�R�R�R�RRR�tjoinR�R(RRdR�R}t	pkgorigintlsttthislist((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt_dumpksN



	
	
		 	 	N(
R)R*R�RR>R+R�R"R%R'R(R-R6(((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyR�s	$
					(R�t	constantstpackageSackRRtpackagesRt
sqlitesackRRR�R#R:RR,R�RR�(((s7/usr/lib/python2.7/site-packages/yum/transactioninfo.pyt<module>s
$���3

Zerion Mini Shell 1.0