v_c@sGddlZddlZdZdZdddYZddZdS(iNtTransactionWrappercBseZddZdZdZdZdZdZdZdZ d Z d Z d Z d Z d ZidZedZRS(t/cCs^tj||_ddddddddd d d d d ddg|_g|_t|_dS(NtchecktordertaddEraset addInstalltruntpgpImportPubkeyt pgpPrtPktstproblemstsetFlagst setVSFlagst setProbFiltert hdrFromFdnotnexttcleant _verifySigs(trpmtTransactionSetttst_methodsttsflagstTruetopen(tselftroot((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyt__init__s$  cCs|jdS(N(tclose(R((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyt__del__+scCs/|jr+|jjd|_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|jddS(Ni(RtappendRR (Rtflags((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyt pushVSFlagsQscCs%|jd=|jj|jddS(Ni(RRR (R((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyt popVSFlagsUs cCs*|jjd}|jj||BdS(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.pyt isTsFlagSetbs cCs|j|j_dS(N(tfilenoRtscriptFd(Rtfd((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyt setScriptFdfsc Cs|j}|jtj|jddkrN|jjtjtjBn|jj |j d}|jj ||dkrgS|sdgSg}x*|D]"\}\}}} |j |qW|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 Csi}g}|j}|dkr(|Sx|D]}|ddkrKq/n|tjs^q/ntj|}xB|tjD]3}||krt||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_providess iiN( R"RRtRPMTAG_REQUIRENAMEt miscutilstpkgTupleFromHeadertsettaddtlenR1tinstance( RtheaderstreqtorphanR&thttuptrRVtpreqtpts((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pytreturnLeafNodessF              (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.pytinitReadOnlyTransactions((RRXRRlRRRm(((s8/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyts