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/rpmUtils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/rpmUtils/miscutils.pyc
Ńň
7ŰŘJc@sôddkZddkZddkZddkZddkZddkZddkZddkZd„Z	d„Z
d„Zd„Zd„Z
d„Zd„Zd	„Zd
„Zeidd„Zd
„Zd„Zd„Zd„Zd„ZdS(i˙˙˙˙NcCs*t|ƒtijot|ƒ}n|S(N(ttypettypest
StringTypetstr(targ((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pytrpmOutToStrsc	CsŽ|\}}}|\}}}t|ƒ}t|ƒ}t|ƒ}t|ƒ}t|ƒ}t|ƒ}ti|||f|||fƒ}|S(N(RtrpmtlabelCompare(	t.0t.1te1tv1tr1te2tv2tr2trc((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pyt
compareEVR$s$c	CsBd}|idƒ}ti|tiƒ}y|i|ƒ}WnŒtij
o}}t|ƒdjo
d}nt|ƒdjo
d}nt|ƒdjo
d}nt|ƒdjo
d}qn>Xt|ƒ\}}|d	joti	|ƒ~d
}n~yti	|ƒWnt
j
o	}nX|i|ƒ|S(sTakes a transaction set and a package, check it's sigs, 
    return 0 if they are all fine
    return 1 if the gpg key can't be found
    return 2 if the header is in someway damaged
    return 3 if the key is not trusted 
    return 4 if the pkg is not gpg or pgp signedispublic key not availaiableispublic key not availablespublic key not trustediserror reading package headeriiei(t
setVSFlagstostopentO_RDONLYthdrFromFdnoRterrorRt
getSigInfotclosetOSError(	ttstpackagetvaluetcurrentflagstfdnothdrteRtsiginfo((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pytcheckSig3s4






cCsˆtitidƒd}|i|ƒ}|djo"d}|idƒ\}}}nd}d}d}d}|||f}||fS(	sXchecks signature from an hdr hand back signature information and/or
       an error codetCsŽ%|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|s(none)it,ietMD5tNone(tlocalet	setlocaletLC_ALLtsprintftsplit(R tstringR"Rtsigtypetsigdatetsigidt	infotuple((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pyRZs
cCsŽ|d}|tip|tidjo|d}nd}|d}|d}|d}|d	jo
d}n|||||f}|S(
s^return a pkgtuple (n, a, e, v, r) from a hdr object, converts
       None epoch to 0, as well.tnameitarchtsrctversiontreleasetepocht0N(RtRPMTAG_SOURCERPMtRPMTAG_SOURCEPACKAGER'(R R2R3tvertrelR7tpkgtuple((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pytpkgTupleFromHeaderms
"




cCs4|\}}}}}t||d|||ffƒS(sureturns true if the package epoch-ver-rel satisfy the range
       requested in the reqtuple:
       ex: foo >= 2.1-1tEQ(trangeCompare(treqtupleR=tntaR!tvtr((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pyt
rangeCheck„sc
	CsG|\}}\}}}|\}}\}	}
}||jodS|p|odS|djo
d}n|djo
d}	n|djo
d}
n|djo
d}nt|	|
|f|||fƒ}|djo\|djodS|djo|djodSn|djo|djodSq=n|djoł|djo|djodSn|djo|djodSn|djo|djodSn|djo|djodSn|djo|djodSqýn|d
jo9|djo|djodSn|d jodSndS(!s,returns true if provtuple satisfies reqtupleiitGTtGEiiR?itLEi
tLTii˙˙˙˙N(RGRHii(sEQi(RIi
RJi(RIRJsEQi
ii(RIRJi
i(RGi(RGRHii(RHi(RGRHsEQRIiiii
(sEQi(sEQRHRIiii
(RIi
(sEQRIRJRHii
ii(RJi(RIRJi
i(RGRHsEQiii(RGRHii(RIRJi
i(R'R(
RAt	provtupletreqntreqftreqetreqvtreqrRBtfR!RDRER((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pyR@Žs^








!



	





	

	

	

	





	
	cCsRt|ƒ}|djogSh}yx|D]}d||<q.WWntj
o
~nX|iƒSyt|ƒ}|iƒWntj
o
~n‚X|djpt‚|d}d}}xM||jo?|||jo ||||<}|d7}n|d7}qÄW|| Sg}x,|D]$}||jo|i|ƒq&q&W|S(sReturn a list of the elements in s, but without duplicates.

    For example, unique([1,2,3,1,2,3]) is some permutation of [1,2,3],
    unique("abcabc") some permutation of ["a", "b", "c"], and
    unique(([1, 2], [2, 3], [1, 2])) some permutation of
    [[2, 3], [1, 2]].

    For best speed, all sequence elements should be hashable.  Then
    unique() will usually work in linear time.

    If not possible, the sequence elements should enjoy a total
    ordering, and if list(s).sort() doesn't raise TypeError it's
    assumed that they do enjoy a total ordering.  Then unique() will
    usually work in O(N*log2(N)) time.

    If that's not possible either, the sequence elements must support
    equality-testing.  Then unique() will usually work in quadratic
    time.
    ii(tlent	TypeErrortkeystlisttsorttAssertionErrortappend(tsRBtutxtttlasttlastiti((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pytuniqueŢs@

	



c
CsŘ|ddjo|d }n|idƒ}||d}|| idƒ}||d|!}|| idƒ}||d|!}|idƒ}|djo
d}n|| }||d|!}	|	||||fS(	sß
    Pass in a standard style rpm fullname 
    
    Return a name, version, release, epoch, arch, e.g.::
        foo-1.0-1.i386.rpm returns foo, 1.0, 1, i386
        1:bar-9-123a.ia64.rpm returns bar, 9, 123a, 1, ia64
    iü˙˙˙s.rpmt.it-t:i˙˙˙˙t(trfindtfind(
tfilenamet	archIndexR3trelIndexR<tverIndexR;t
epochIndexR7R2((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pyt
splitFilename#s	


icCsżtiiƒ}|i|ƒ}~|tipd}|djotid|‚ntidddt
i|d|ƒƒ}x1|i|ƒ}|djoPn|i
|ƒq€|iƒdS(sŸPerforms roughly the equivalent of rpm2cpio(8).
       Reads the package from fdno, and dumps the cpio payload to out,
       using bufsize as the buffer size.tgzips$Unsupported payload compressor: "%s"trbRdN(trpmUtilsttransactiontinitReadOnlyTransactionRRtRPMTAG_PAYLOADCOMPRESSORt
RpmUtilsErrorRmtGzipFileR'RtfdopentreadtwriteR(RtouttbufsizeRR tcomprRQttmp((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pytrpm2cpioBs
'
cCsŽ|}|o|titiBtiB@o}|d}|ti@o|d}n|ti@o|d}n|ti@o|d}n|od||f}qŚqŞn|S(Nt t<t>t=s%s %s(Rt
RPMSENSE_LESStRPMSENSE_GREATERtRPMSENSE_EQUAL(R2R5tflagsRY((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pyt
formatRequireYs
cCsz|d@}|djodS|djodS|djodS|djodS|d	jod
S|djodS|S(
NiiiRJiRGiR?i
RIiRH(R'(R„((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pytflagToStringjs






c
Cs|djodS|idƒ}|djo:ytt|| ƒƒ}Wqntj
o
d}qnXnd}|idƒ}|djoE||d|!djo
d}n||d|!}||d}n4||ddjo
d}n||d}d}|||fS(	NRdRci˙˙˙˙R8Rbi(NRd(NNN(R'RfRtlongt
ValueError(t	verstringR_R7tjR5R6((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pytstringToVersionvs(




cCsČyti|tiƒ}Wn!tj
o}tid‚nXy|i|ƒ}Wn1tij
o"}ti	|ƒtid‚nXt
|ƒtijoti	|ƒtid‚nti	|ƒ|S(s>hand back the rpm header or raise an Error if the pkg is fubarsUnable to open filesRPM Error opening Packages RPM Error opening Package (type)(RRRRRoRsRRRRRR (RRRR!R ((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pythdrFromPackage‘s


cCsgttdƒoSttdƒoCtitititititigƒot	i
dƒqcndS(NtcheckSignalst
signalsCaughti(thasattrRRŽtsignaltSIGINTtSIGTERMtSIGPIPEtSIGQUITtSIGHUPtsystexit(((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pyRŚs (RRRmRR–R(RtrpmUtils.transactionRoRRR#RR>RFR@R`RltstdoutR|R…R†R‹RŒR(((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pyt<module>s,			'			
	P	E					

Youez - 2016 - github.com/yon3zu
LinuXploit