ok

Mini Shell

Direktori : /proc/self/root/proc/thread-self/root/lib/python2.7/site-packages/rpmUtils/
Upload File :
Current File : //proc/self/root/proc/thread-self/root/lib/python2.7/site-packages/rpmUtils/transaction.pyc

�
8M�bc@sGddlZddlZdZdZddd��YZdd�ZdS(i����NtTransactionWrappercBs�eZdd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zd�Z
d
�Zid�Zed�ZRS(t/cCs^tj|�|_ddddddddd	d
ddd
ddg|_g|_t|_dS(NtchecktordertaddEraset
addInstalltruntpgpImportPubkeyt
pgpPrtPktstproblemstsetFlagst
setVSFlagst
setProbFilterthdrFromFdnotnexttcleant_verifySigs(trpmtTransactionSetttst_methodsttsflagstTruetopen(tselftroot((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyt__init__s$	cCs|j�dS(N(tclose(R((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyt__del__+scCs/|jr+|jj�d|_t|_ndS(N(RRtcloseDBtNonetFalse(R((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyR/s	
	cOsjd|kr|jd�}ng}|jj||�}x*|D]"\}}}|j|||�q@W|S(Ntpatterns(tpopRtdbMatchtpattern(RtargstkwdsR tmittagttptpat((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyR"5scCs)||jkr|j|�St|�dS(N(Rt	getMethodtAttributeError(Rtattr((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyt__getattr__@s
cCs|jS(N(R(R((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyt__iter__FscCst|j|�S(N(tgetattrR(Rtmethod((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyR*IscCs+|jj|�|jj|jd�dS(Ni����(RtappendRR(Rtflags((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pytpushVSFlagsQscCs%|jd=|jj|jd�dS(Ni����(RRR(R((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyt
popVSFlagsUs
cCs*|jjd�}|jj||B�dS(Ni(RR
(Rtflagtcurflags((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyt	addTsFlagYscCs&|jjd�}|jj|�|S(Ni(RR
(RR6((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyt
getTsFlags]scCs|j�}t||@�S(N(R8tbool(RR5tval((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pytisTsFlagSetbscCs|j�|j_dS(N(tfilenoRtscriptFd(Rtfd((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pytsetScriptFdfsc
Cs�|j�}|jtj�|jd�dkrN|jjtjtjB�n|jj	|j
d�}|jj|�|dkr�gS|s�dgSg}x*|D]"\}\}}}	|j
|�q�W|S(sftests the ts we've setup, takes a callback function and a conf dict 
           for flags and what nottdiskspacecheckits,Unknown error during transaction test in RPMN(R8R7RtRPMTRANS_FLAG_TESTtgetRRtRPMPROB_FILTER_DISKSPACEtRPMPROB_FILTER_DISKNODESRtcallbackR
RR1(
Rtcbtconft	origflagsttserrorst	reserrorstdescrtetypetmounttneed((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyttestmscCs�i}g}|j�}|dkr(|Sx�|D]�}|ddkrKq/n|tjs^q/ntj|�}xB|tjD]3}||kr�t�||<n||j|�q{Wq/W|j�}|dkr�|Sd�}x�|D]�}|ddkr�q�nd}	tj|�}xY||�D]K}
|
|kr ||
}t|�dksZ||krk|	d}	Pqkq q W|	dkr�|r�|j	||j
�f�q�|j	|�q�q�W|S(s�returns a list of package tuples (n,a,e,v,r) that are not required by
           any other package on the system
           If headers is True then it will return a list of (header, index) tuples
           tnames
gpg-pubkeycss>x|tjD]}|VqWx|tjD]}|Vq+WdS(s% Return all the provides, via yield. N(RtRPMTAG_PROVIDEStRPMTAG_FILENAMES(thdrtprov((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyt_return_all_provides�s	iiN(R"RRtRPMTAG_REQUIRENAMEt	miscutilstpkgTupleFromHeadertsettaddtlenR1tinstance(RtheaderstreqtorphanR&thttuptrRVtpreqtpts((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pytreturnLeafNodes�sF

	


(t__name__t
__module__RRRR"R-R.R*R3R4R7R8R;R?RPRRg(((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyRs												RcCs*td|�}|jtjtjB�|S(NR(RR3Rt_RPMVSF_NOSIGNATURESt_RPMVSF_NODIGESTS(Rtread_ts((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pytinitReadOnlyTransaction�s((RRXRRlRRRm(((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyt<module>s
�

Zerion Mini Shell 1.0