ok

Mini Shell

Direktori : /proc/self/root/lib64/python2.7/site-packages/rpm/
Upload File :
Current File : //proc/self/root/lib64/python2.7/site-packages/rpm/transaction.pyo

�

�ac@sjddlZddlZddlmZejddkrGefZn	efZdefd��YZ	dS(i����N(ttsiitTransactionSetcBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zdd�Z
d
�Zd�Zd�Zd�Zd�Zd�ZRS(icCs#t||�}t|||�|S(N(tgetattrtsetattr(tselftattrtvaltoval((s5/usr/lib64/python2.7/site-packages/rpm/transaction.pyt_wrapSetGetscCs|jd|�S(Nt_vsflags(R(Rtflags((s5/usr/lib64/python2.7/site-packages/rpm/transaction.pyt
setVSFlagsscCs|jS(N(R	(R((s5/usr/lib64/python2.7/site-packages/rpm/transaction.pyt
getVSFlagsscCs|jd|�S(Nt_color(R(Rtcolor((s5/usr/lib64/python2.7/site-packages/rpm/transaction.pytsetColorscCs|jd|�S(Nt
_prefcolor(R(RR((s5/usr/lib64/python2.7/site-packages/rpm/transaction.pytsetPrefColorscCs|jd|�S(Nt_flags(R(RR
((s5/usr/lib64/python2.7/site-packages/rpm/transaction.pytsetFlags!scCs|jd|�S(Nt_probFilter(R(Rt	ignoreSet((s5/usr/lib64/python2.7/site-packages/rpm/transaction.pyt
setProbFilter$scCsddl}|j|�S(Ni����(t_rpmbtspec(RtspecfileR((s5/usr/lib64/python2.7/site-packages/rpm/transaction.pyt	parseSpec'scCsBg}x!|D]}|j|j��q
W|s4dSt|�SdS(N(tappendtKeytNonettuple(Rtkeystte((s5/usr/lib64/python2.7/site-packages/rpm/transaction.pytgetKeys+s
cCset|t�r7t|�}|j|�}|j�n*t|tj�rR|}n|j|�}|S(N(t
isinstancet
_string_typestopenthdrFromFdnotclosetrpmthdr(Rtitemtftheader((s5/usr/lib64/python2.7/site-packages/rpm/transaction.pyt_f2hdr5s
	tucCsd|j|�}|dkr*td��n|dk}tj||||�s`tjd��ndS(NR-tishow argument must be "u" or "i"s$adding package to transaction failed(R-R.(R,t
ValueErrortTransactionSetCoret
addInstallR'terror(RR)tkeythowR+tupgrade((s5/usr/lib64/python2.7/site-packages/rpm/transaction.pyR1@scCs:|j|�}tj|||�s6tjd��ndS(Ns$adding package to transaction failed(R,R0taddReinstallR'R2(RR)R3R+((s5/usr/lib64/python2.7/site-packages/rpm/transaction.pyR6JscCs�g}t|tj�r$|g}nt|tj�r?|}ndt|t�rf|jtj|�}n=t|t�r�|jtj|�}nt	dt
|���x2|D]*}tj||�s�tj
d��q�q�Wt|tj�r�~ndS(Nsinvalid type %sspackage not installed(R"R'R(tmitinttdbMatchtRPMDBI_PACKAGESR#tRPMDBI_LABELt	TypeErrorttypeR0taddEraseR2(RR)thdrsth((s5/usr/lib64/python2.7/site-packages/rpm/transaction.pyR>Ps	
cCs�tj||||j�}|dkr+dSg}|dkr�xF|j�D]5}d||j|j|jff}|j|�qJWn|S(Nis%s(	R0trunRRtproblemsR=t_strt_numR(RtcallbacktdatatrctrestprobR)((s5/usr/lib64/python2.7/site-packages/rpm/transaction.pyRAes"cOs�tj|||�g}xu|j�D]g}|jtjkrJtj}n!|jtjkr&tj}nq&|j	j
dd�d}|j
dd�\}}}	|jj�}
|
d}tj
}t|
�dkrY|
d}
|
jd�dkr|tjO}n|
jd�dkr'|tjO}n|
jd	�dkrL|tjO}n|
d}nd
}|j|||	f||f|||jf�q&W|S(Nt.iit-iit<t=t>t(R0tcheckRBR=R'tRPMPROB_CONFLICTtRPMDEP_SENSE_CONFLICTStRPMPROB_REQUIREStRPMDEP_SENSE_REQUIREStaltNEVRtrsplitRCtsplittRPMSENSE_ANYtlentfindt
RPMSENSE_LESStRPMSENSE_EQUALtRPMSENSE_GREATERRR3(RtargstkwdsRHtptsensetnevrtntvtrtneedstneednamet	needflagstneedoptneedver((s5/usr/lib64/python2.7/site-packages/rpm/transaction.pyRPus2
	

2cCstj||�\}}|tjkr9tjd��nB|tjkrZtjd��n!|tjkr{tj|��ndS(Nspublic key not availablespublic key not trusted(R0thdrCheckR'tRPMRC_NOKEYR2tRPMRC_NOTTRUSTEDtRPMRC_OK(RtblobRHtmsg((s5/usr/lib64/python2.7/site-packages/rpm/transaction.pyRk�scCstj||�\}}|tjkr9tjd��nB|tjkrZtjd��n!|tjkr{tjd��n|S(Nspublic key not availablespublic key not trustedserror reading package header(R0R%R'RlR2RmRn(RtfdRHR@((s5/usr/lib64/python2.7/site-packages/rpm/transaction.pyR%�s(t__name__t
__module__RRRRRRRRRR!R,R1R6R>RARPRkR%(((s5/usr/lib64/python2.7/site-packages/rpm/transaction.pyR
s$									
	
				#	
(
tsysR'trpm._rpmRR0tversion_infotstrR#t
basestringR(((s5/usr/lib64/python2.7/site-packages/rpm/transaction.pyt<module>s	

Zerion Mini Shell 1.0