403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/yum/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/yum/rpmtrans.pyo
7Jc
@sddkZddkZddkZddkZddkZddkZddkZddkTddkl	Z	ddk
Z
dddYZdddYZdefd	YZ
d
ddYZddd
YZdS(iN(t*(t_tNoOutputCallBackcBs5eZdZdZdZdZdZRS(cCsdS(N((tself((s0/usr/lib/python2.6/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((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pytevent"scCsdS(sPpackage is the package.  msgs is the messages that were
        output (if any).N((RRtmsgs((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyt	scriptout2scCsdS(stakes a simple error msg stringN((Rtmsg((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyterrorlog7scCsdS(svpackage is the same as in event() - a package object or simple string
           action is also the same as in event()N((RRR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pytfilelog<s(t__name__t
__module__RRR
RR(((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRs
				tRPMBaseCallbackcBs;eZdZdZdZdZdZdZRS(s@
    Base class for a RPMTransaction display callback class
    cCshtdt6tdt6tdt6tdt6tdt6tdt6tdt6tdd6|_hdt6d	t6d
t6d
t6dt6d
t6dt6|_	t
id|_dS(NtUpdatingtErasingt
Installingt	ObsoletedtCleanuptRepackagingtrepackagingtUpdatedtErasedt	Installeds"yum.filelogging.RPMInstallCallback(
Rt	TS_UPDATEtTS_ERASEt
TS_INSTALLtTS_TRUEINSTALLtTS_OBSOLETEDt
TS_OBSOLETINGt
TS_UPDATEDRt
fileactiontloggingt	getLoggertlogger(R((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRFs 







cCs
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(RRRRRR	R
((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRYscCsdS(sPpackage is the package.  msgs is the messages that were
        output (if any).N((RRR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyR
gscCsti|IJdS(N(tsyststderr(RR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRlscCsR|ii|od|i||f}nd||f}|ii|dS(Ns%s: %s(R%thas_keyR(tinfo(RRRR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRps(RRt__doc__RRR
RR(((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRBs				tSimpleCliCallBackcBs#eZdZdZdZRS(cCs#ti|d|_d|_dS(N(RRtNonetlastmsgtlastpackage(R((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyR{s
	cCsRd|i||||||f}||ijo	|GHn||_||_dS(Ns%s: %s %s/%s [%s/%s](RR1R2(RRRRRR	R
R((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRs		cCs|o|GndS(N((RRR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyR
s(RRRRR
(((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyR/zs			t_WrapNoExceptionscBseZdZdZRS(cCs
||_dS(N(t_WrapNoExceptions__parent(Rtparent((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRscsPt|i|fd}i|_i|_|iii|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((targstkwargs(tfunc(s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pytnewFuncs(tgetattrR4RR.t__dict__tupdate(RtnameR9((R8s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyt__getattr__s(RRRR>(((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyR3s	tRPMTransactioncBs
eZeedZdZdZdZdZdZ	dZ
dZdZd	Z
d
ZdZdZd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZRS(cCst|p
||_n
||_t|i|_||_||_t|_h|_d|_d|_	d|_
g|_d|_t
id|_t|_|itii|iiipti|iiindS(Nis"yum.filelogging.RPMInstallCallback(tcallabletdisplayR3tbasettesttFalset
trans_runningtfilehandlest
total_actionsttotal_installedtcomplete_actionstinstalled_pkg_namest
total_removedR&R'R(Rt_setupOutputLoggingtostpathtexiststconft
persistdirtmakedirs(RRBRCRA((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRs$

										
cCsLti}ti|ti}||@odSti|ti||BdS(s1 Set the Non-blocking flag for a filedescriptor. N(RMt
O_NONBLOCKtfcntltF_GETFLtF_SETFL(Rtfdtflagt
current_flags((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyt_fdSetNonblocks
	cCsLti}ti|ti}||@odSti|ti||BdS(s3 Set the close on exec. flag for a filedescriptor. N(RTt
FD_CLOEXECtF_GETFDtF_SETFD(RRWRXRY((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyt_fdSetCloseOnExecs
	cCsti\}}ti|d|_|i|iiti|d|_|ii|ii_	t
it
it
i
|idS(Ntrtw(RMtpipetfdopent	_readpipeRZtfilenot
_writepipeRBttstscriptFdtrpmtsetVerbositytRPMLOG_INFOt
setLogFile(RR_R`((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRLscCs?titititiy|iiWnnXdS(N(RhRit
RPMLOG_NOTICERkR*R+Retclose(R((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyt_shutdownOutputLoggingscCs1y|ii}|SWntj
onXdS(N(RctreadtIOError(Rtout((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyt
_scriptOutputs
cCs9|i}|ii|||iii||dS(N(RrRAR
RBthistorytlog_scriptlet_output(RtdataR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyt
_scriptoutscCs|idS(N(Rn(R((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyt__del__scCsP|d}|djo
d}n
t|}|d|d||d|dfS(Ntepocht0R=tarchtversiontrelease(R0tstr(RthdrttmpepochRx((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyt	_dopkgtups



cCs1d|d|d|d|d|df}|S(Ns%s:%s.%s-%s-%sRxR=R{R|Rz((RR~thandle((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyt_makeHandlesc
Cs@|iodSt|dpd|iii|if|_yt|id|_Wn0t	t
fj
o}|iid|dSX|i
|iint|idjodS|id\}}}}}}d||||f}	|tjo(|djo|ii||	q)n|tjo(|d	jo|ii||	q^nt|tijo
|}
n
|i}
||
jo'd
||f}	|ii||	nd||||||f}	y!|ii|	|iiWn1t	t
fj
o}|`ti|inX|iiddS(s?writes out the portions of the transaction which have completedNt_ts_dones%s/transaction-done.%sR`scould 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
(RCthasattrRBRPRQt_ts_timet
ts_done_fntopenRRptOSErrorRARR^Rdtlent
_te_tuplestTS_REMOVE_STATESRtTS_INSTALL_STATESttypettypestStringTypesR=twritetflushtmisctunlink_ftpop(RRRtetttntvR_taRR=((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pytts_donesD





	
cCst|dp
g|_nx|iiD]}|i}|i}|i}|i}|i}|d
jo
d}n|i
djo
d}n*|i
djo
d}n
|i
}|ii||||||fq*Wti
d|_d|iii|if}||_|iiid	jo+|itii|iiid
}nyOtiitii|ptitii|nt|d}	Wn0ttfj
o}|iid|d
SXygxL|iD]A\}}}}}}d||||||f}
|	i|
qW|	i |	i!Wn(ttfj
o}t"i#|nXd
S(s&write out what our transaction will doRRyiRiRs%Y-%m-%d.%H:%M.%Ss%s/transaction-all.%st/tR`scould not open ts_all file: %sNs%s %s:%s-%s-%s.%s
($RRRBRftNtAtVtRtER0tTypetappendttimetstrftimeRRPRQt	ts_all_fntinstallroottreplaceRMRNtnormpathROtdirnameRRRRpRRARRRRmRR(RtteRRRR_RRttsfntfoR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pytts_all:sL





&	+

cCsZ|tijo|i|||n0|tijo|i|||n	|tijo|i|||n|tijo|i|||S|ti	jo|i
|||n|tijo|i|||np|ti
jo|i|||nI|tijo|i|||n"|tijo|i|||n|tijo|i|||n|tijo|i|||n|tijo|i|||n|tijo|i|||n_|tijo|i|||n8ttdo'|tijo|i|||ndS(NtRPMCALLBACK_SCRIPT_ERROR( RhtRPMCALLBACK_TRANS_STARTt_transStarttRPMCALLBACK_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(Rtwhattbytesttotalthtuser((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pytcallbackos< cCs@|djo/||_|iodSt|_|indS(Ni(RGRCtTrueRER(RRRR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRs
	
	cCsdS(N((RRRR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRscCsdS(N((RRRR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRsc	Csd|_d}|dj	o|d|d}}|i|}yti|ti}Wn/tj
o#}|iid||fqX||i	|<|i
o6|id7_|id7_|i
i|dn|Sn|iiddS(NiisError: Cannot open file %s: %sR=s"Error: No Header to INST_OPEN_FILE(R0R1RRMRtO_RDONLYRt
displaylogRRFRERHRIRJRRA(	RRRRR~trpmlocRRWR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRs 	


c
Cs0d}|dj	o|d|d}}|i|}ti|i|d}|iodS|io|i|}|ii	i
d|}	x|	D]}
|ii|
i
|
i|i|
i
|iii|
i
}|iii|
}|iii|||i|
i
|
iqWq,ndS(Niitpkgtup(R0RRMRmRFRCRERRBttsInfot
getMembersRARtpotoutput_stateRvRstpkg2pidttxmbr2statettrans_data_pid_endR(
RRRRR~RRRWRttxmbrsttxmbrtpidtstate((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRs&


c
Cs|dj	ot|tdjo)|ii|d|||i|iq|d|d}}|i|}|iii	d|}xC|D]7}|i
}	|ii|i|	|||i|iqWndS(NRRiiR(R0RRARRIRGRRBRRRR(
RRRRR~RRRRR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRs
	cCsdS(N((RRRR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRscCsdS(N((RRRR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRscCs|id7_|id7_||ijo|ii|tt}nt}|ii||dd|i|i|i	||i
odS|i||dS(Niid(RKRIRJRARRR$RRGRvRCR(RRRRR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRs



cCsdS(N((RRRR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRscCsdS(N((RRRR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRscCsdS(N((RRRR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRsc
Csw|d|d}}|i|}|iiid|}x4|D],}d|i}	t|_|ii|	qCWdS(NiiRs'Error in cpio payload of rpm package %s(	RRBRRRt	TS_FAILEDRRAR(
RRRRR~RRRRR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRs
	c
Csw|d|d}}|i|}|iiid|}x4|D],}t|_d|i}	|ii|	qCWdS(NiiRsError unpacking rpm package %s(	RRBRRRRRRAR(
RRRRR~RRRRR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyRs	
c
Cst|tip|df}n|d|d}}t}t|tip|g}t}n(|i|}|i	i
id|}x|D]}	tii
|d}
|o
|	}n
|	i}|o(d|
|f}|p
t|	_qnd|
|f}|ii|qWdS(NiiRs	<unknown>s'Error in %s scriptlet in rpm package %ss0Non-fatal %s scriptlet failure in rpm package %s(t
isinstanceRt	TupleTypeR0RDRhR~RRRBRRttagnamestgetRRRRAR(
RRRRR~Rt
remove_hdrRRtpkgtscriptlet_nametpackage_nameR((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyR
s.	

	

( RRRDRRRZR^RLRnRrRvRwRRRRRRRRRRRRRRRRRRRR(((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyR?s8											<	5	"													
	(((((RhRMRTRR&RR*t
yum.constantstyumRRRRR/R3R?(((s0/usr/lib/python2.6/site-packages/yum/rpmtrans.pyt<module>s
$8

Youez - 2016 - github.com/yon3zu
LinuXploit