KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21573/root/usr/lib/python2.4/site-packages/yum/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21573/root/usr/lib/python2.4/site-packages/yum/rpmtrans.pyc
m
Pc@sdkZdkZdkZdkZdkZdkZdkZdkTdkl	Z	dk
Z
dfdYZdfdYZdefdYZ
d	fd
YZdfdYZdS(
N(t*(t_tNoOutputCallBackcBs5tZdZdZdZdZdZRS(NcCsdS(N((tself((t0/usr/lib/python2.4/site-packages/yum/rpmtrans.pyt__init__scCsdS(s
        @param package: A yum package object or simple string of a package name
        @param action: A yum.constant transaction set state or in the obscure 
                       rpm repackage case it could be the string 'repackaging'
        @param te_current: current number of bytes processed in the transaction
                           element being processed
        @param te_total: total number of bytes in the transaction element being
                         processed
        @param ts_current: number of processes completed in whole transaction
        @param ts_total: total number of processes in the transaction.
        N((Rtpackagetactiont
te_currenttte_totalt
ts_currenttts_total((Rtevent"scCsdS(sPpackage is the package.  msgs is the messages that were
        output (if any).N((RRtmsgs((Rt	scriptout2scCsdS(stakes a simple error msg stringN((Rtmsg((Rterrorlog7scCsdS(svpackage is the same as in event() - a package object or simple string
           action is also the same as in event()N((RRR((Rtfilelog<s(t__name__t
__module__RRRRR(((RRs
				tRPMBaseCallbackcBs;tZdZdZdZdZdZdZRS(s@
    Base class for a RPMTransaction display callback class
    cCshttd<ttd<ttd<ttd<ttd<ttd<ttd<dtd<|_	htd<td	<td
<td
<td<td
<td<|_
tid|_
dS(NtUpdatingtErasingt
Installingt	ObsoletedtCleanuptrepackagingtRepackagingtUpdatedtErasedt	Installeds"yum.filelogging.RPMInstallCallback(t	TS_UPDATERtTS_ERASEt
TS_INSTALLtTS_TRUEINSTALLtTS_OBSOLETEDt
TS_OBSOLETINGt
TS_UPDATEDRRt
fileactiontloggingt	getLoggertlogger(R((RRFs	HcCs
tdS(s
        @param package: A yum package object or simple string of a package name
        @param action: A yum.constant transaction set state or in the obscure 
                       rpm repackage case it could be the string 'repackaging'
        @param te_current: Current number of bytes processed in the transaction
                           element being processed
        @param te_total: Total number of bytes in the transaction element being
                         processed
        @param ts_current: number of processes completed in whole transaction
        @param ts_total: total number of processes in the transaction.
        N(tNotImplementedError(RRRRR	R
R((RRYscCsdS(sPpackage is the package.  msgs is the messages that were
        output (if any).N((RRR
((RRgscCsti|IJdS(N(tsyststderrR(RR((RRlscCsR|ii|od|i||f}nd||f}|ii|dS(Ns%s: %s(RR&thas_keyRRRR)tinfo(RRRR((RRps(RRt__doc__RRRRR(((RRBs				tSimpleCliCallBackcBs#tZdZdZdZRS(NcCs#ti|d|_d|_dS(N(RRRtNonetlastmsgtlastpackage(R((RR{s
	cCsRd|i||||||f}||ijo	|GHn||_||_	dS(Ns%s: %s %s/%s [%s/%s](
RRRRR	R
RRR2R3(RRRRR	R
RR((RRs
#		cCs|o|GndS(N(R
(RRR
((RRs(RRRRR(((RR0zs			t_WrapNoExceptionscBstZdZdZRS(NcCs
||_dS(N(tparentRt_WrapNoExceptions__parent(RR5((RRscsMt|i|d}i|_i|_|ii	i|S(s Wraps all access to the parent functions. This is so it'll eat all
            exceptions because rpm doesn't like exceptions in the callback. csy||WnnXdS(N(tfunctargstkwargs(R8R9(R7(RtnewFuncsN(
tgetattrRR6tnameR7R:RR/t__dict__tupdate(RR<R:R7((R7Rt__getattr__s(RRRR?(((RR4s	tRPMTransactioncBstZeedZdZdZdZdZdZ	dZ
dZd	Zd
Z
dZdZd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZRS(NcCst|p
||_n
||_t|i|_||_||_t|_h|_d|_	d|_
d|_g|_d|_
tid|_t|_|itii|iiipti|iiindS(Nis"yum.filelogging.RPMInstallCallback(tcallabletdisplayRR4tbasettesttFalset
trans_runningtfilehandlest
total_actionsttotal_installedtcomplete_actionstinstalled_pkg_namest
total_removedR'R(R)Rt_setupOutputLoggingtostpathtexiststconft
persistdirtmakedirs(RRCRDRB((RRs$

										
cCsOti}ti|ti}||@odSnti|ti||BdS(s1 Set the Non-blocking flag for a filedescriptor. N(RNt
O_NONBLOCKtflagtfcntltfdtF_GETFLt
current_flagstF_SETFL(RRWRYRU((Rt_fdSetNonblocks	cCsOti}ti|ti}||@odSnti|ti||BdS(s3 Set the close on exec. flag for a filedescriptor. N(RVt
FD_CLOEXECRURWtF_GETFDRYtF_SETFD(RRWRURY((Rt_fdSetCloseOnExecs	cCsti\}}ti|d|_|i|iiti|d|_	|i	i|i
i_t
it
it
i|i	dS(Ntrtw(RNtpipeR`RatfdopenRt	_readpipeR[tfilenot
_writepipeRCttstscriptFdtrpmtsetVerbositytRPMLOG_INFOt
setLogFile(RR`Ra((RRMscCs?titititiy|iiWnnXdS(N(	RiRjt
RPMLOG_NOTICERlR+R,RRftclose(R((Rt_shutdownOutputLoggingscCs1y|ii}|SWntj
onXdS(N(RRdtreadtouttIOError(RRq((Rt
_scriptOutputs
cCs|idS(N(RRo(R((Rt__del__scCsP|d}|djo
d}n
t|}|d|d||d|dfS(Ntepocht0R<tarchtversiontrelease(thdrttmpepochR1Rutstr(RRzR{Ru((Rt	_dopkgtups



cCs1d|d|d|d|d|df}|S(Ns%s:%s.%s-%s-%sRuR<RxRyRw(Rzthandle(RRzR~((Rt_makeHandles-cCsL|iodSnt|dpd|iii|if}||_yt	|d|_
Wn3ttfj
o!}|iid|dSnX|i|i
int|idjodSn|id\}
}}}}	}d|||
|f}|tjo(|
djo|ii||q5n|tjo(|
d	jo|ii||qjnt|t i!jo
|}n
|i"}||jo'd
||f}|ii||nd|
||||	|f}y!|i
i#||i
i$Wn1ttfj
o}|`
t%i&|inX|ii'ddS(s?writes out the portions of the transaction which have completedNt_ts_dones%s/transaction-done.%sRascould not open ts_done file: %sis&ts_done state is %s %s should be %s %sterasetinstalls%ts_done name in te is %s should be %ss%s %s:%s-%s-%s.%s
((RRDthasattrRCRQRRt_ts_timette_fnt
ts_done_fntopenRRrtOSErrorteRBRR_Retlent
_te_tuplestttntvR`taRRRtTS_REMOVE_STATESRtTS_INSTALL_STATESttypettypestStringTypesR<twritetflushtmisctunlink_ftpop(RRRRRRRR<RR`RR((Rtts_donesH
		




	
cCs>t|dp
g|_nx|iiD]}	|	i}|	i}|	i
}|	i}|	i}|djo
d}n|	idjo
d}n*|	idjo
d}n
|	i}|ii||||||fq*Wtid|_d|iii|if}||_tii|iiipti|iiinyt|d	}
Wn3t!t"fj
o!}|i#i$d
|dSnXygxL|iD]A\}}}}}}d||||||f}|
i&|qW|
i'|
i(Wn+t!t"fj
o}t)i*|inXdS(
s&write out what our transaction will doRRviRiRs%Y-%m-%d.%H:%M.%Ss%s/transaction-all.%sRascould not open ts_all file: %sNs%s %s:%s-%s-%s.%s
(+RRRRCRgttetNRtARtVRtRR`tERR1tTypeRtappendttimetstrftimeRRQRRttsfnt	ts_all_fnRNRORPRSRtfoRrRRBRRRRRnRR(RRRRRR`RRRRR((Rtts_all6sJ





&		

cCs]|tijo|i|||n3|tijo|i	|||n|ti
jo|i|||n|tijo|i
|||Sn|tijo|i|||n|tijo|i|||np|tijo|i|||nI|tijo|i|||n"|tijo|i|||n|tijo|i|||n|tijo|i|||n|tijo|i|||n|tijo|i|||n_|ti jo|i!|||n8t"tdo'|ti#jo|i$|||ndS(NtRPMCALLBACK_SCRIPT_ERROR(%twhatRitRPMCALLBACK_TRANS_STARTRt_transStarttbytesttotalthtRPMCALLBACK_TRANS_PROGRESSt_transProgresstRPMCALLBACK_TRANS_STOPt
_transStoptRPMCALLBACK_INST_OPEN_FILEt
_instOpenFiletRPMCALLBACK_INST_CLOSE_FILEt_instCloseFiletRPMCALLBACK_INST_PROGRESSt
_instProgresstRPMCALLBACK_UNINST_STARTt_unInstStarttRPMCALLBACK_UNINST_PROGRESSt_unInstProgresstRPMCALLBACK_UNINST_STOPt_unInstStoptRPMCALLBACK_REPACKAGE_STARTt_rePackageStarttRPMCALLBACK_REPACKAGE_STOPt_rePackageStoptRPMCALLBACK_REPACKAGE_PROGRESSt_rePackageProgresstRPMCALLBACK_CPIO_ERRORt
_cpioErrortRPMCALLBACK_UNPACK_ERRORt_unpackErrorRRt_scriptError(RRRRRtuser((Rtcallbackfs< cCsC|djo2||_|iodSnt|_|indS(Ni(RRRRHRDtTrueRFR(RRRR((RRs
	
	cCsdS(N((RRRR((RRscCsdS(N((RRRR((RRsc	Csd|_d}|dj	o|d|d}}|i|}yti	|ti
}Wn/tj
o#}|iid||fqX||i|<|io6|id7_|id7_|ii|dn|Sn|iiddS(NiisError: Cannot open file %s: %sR<s"Error: No Header to INST_OPEN_FILE(R1RR2RzRtrpmlocRR~RNRtO_RDONLYRWRRt
displaylogRRGRFRIRJRKRRB(	RRRRR~RzRRWR((RRs 	


cCsd}|dj	o|d|d}}|i|}ti|i	|d}	|iodSn|io|i
|}|iiid|}x]|D]Q}
|ii|
i|
i|ii|
i|i|i|
i|
iqWqndS(Niitpkgtup(R1RzRRRRR~RNRnRGRWRDRFR}RRCttsInfot
getMembersttxmbrsttxmbrRBRtpotoutput_stateRRsR(RRRRR~RzRRRRWR((RRs 


c
Cs|dj	ot|tdjo)|ii|d|||i|i	q|d|d}}|i|}|iiid|}xC|D]7}|i}	|ii|i|	|||i|i	qWndS(NtRiiR(RR1RRRBRRRRJRHRzRR}RRCRRRRRRR(
RRRRRzRRRRR((RRs
	cCsdS(N((RRRR((RRscCsdS(N((RRRR((RRscCs|id7_|id7_||ijo|ii|tt}nt	}|ii
||dd|i|i|ii||i
|iodSn|i||dS(Niid(RRLRJRRKRBRR RR%RRHRRsRDR(RRRRR((RRs


cCsdS(N((RRRR((RRscCsdS(N((RRRR((RRscCsdS(N((RRRR((RRsc
Csw|d|d}}|i|}|iiid|}x4|D],}d|i}	t
|_|ii|	qCWdS(NiiRs'Error in cpio payload of rpm package %s(RRzRRR}RRCRRRRRRt	TS_FAILEDRRBR(
RRRRRzRRRRR((RRs
	c
Csw|d|d}}|i|}|iiid|}x4|D],}t|_d|i
}	|ii|	qCWdS(NiiRsError unpacking rpm package %s(RRzRRR}RRCRRRRRRRRRBR(
RRRRRzRRRRR((RRs	
c
Cs|d|d}}
t}t|tip|g}t}n(|i
|}|ii
id|}x|D]}tii|d}|o
|}	n
|i}	|o(d||	f}|p
t|_qnd||	f}|ii|qoWdS(NiiRs	<unknown>s'Error in %s scriptlet in rpm package %ss0Non-fatal %s scriptlet failure in rpm package %s(RRzRREt
remove_hdrt
isinstanceRiRRRR}RRCRRtpkgttagnamestgetRtscriptlet_nametpackage_nameRRRRRRBR(
RRRRRRRRzRRRRR((RRs&	

	(RRRERRR[R_RMRoRsRtR}RRRRRRRRRRRRRRRRRRR(((RR@s6										=	0	"													
	(RiRNRVRR'RR+t
yum.constantstyumRRRRR0R4R@(RVR4R'RR@RiRRR+RRR0RNR((Rt?s							
	$8

Anon7 - 2021