MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/proc/self/root/usr/lib/python2.4/site-packages/rpmUtils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/proc/self/root/usr/lib/python2.4/site-packages/rpmUtils/arch.pyo
m
ODc@sdkZhdd&<dd'<dd(<dd)<d	d*<Zhdd
<d
d<dd<dd
<d
d<dd<dd<dd<d	d
<dd<dd<dd<dd<dd<dd<dd<dd<dd<dd<dd<dd<dd<dd<ZdZdZddZddZddZdZ	dZ
d Zd!d"Zed#Z
d$Zdd%ZeZdS(+Ntx86_64tathlontsparc64tsparctppc64tppcts390xts390tia64ti686ti586ti486ti386tnoarchtamd64tia32etppc64pseriestppc64iseriestsparcv9tsparcv8talphaev6t	alphaev56talphaev5talphacCs]||jodSnti|o4tt||}|djo|dSndSndS(Nii(tmyarcht
targetarchtarchesthas_keytarchDifferencetret(RRR((t1/usr/lib/python2.4/site-packages/rpmUtils/arch.pyR6s

cCs
tt|S(N(Rt	canonArchtarch(R ((Rtscore@scCsj|djo
t}nti|pdSnti|odSntit|odSndS(s5returns true if arch is a multilib arch, false if notiiN(R tNonetgetCanonArchRRtmultilibArches(R ((RtisMultiLibArchCs

cCs|djo
t}nt|djodSn|d}x|dD]}t||}t||}|djo|djoqJn||jo|djo
|}qn||jo|djo
|}qn||joqJqJWt||}|djodSn|S(s 
        return the best arch from the list for myarch if - myarch is not given,
        then return the best arch from the list for the canonArch.
    iiN(RR"R#tlentarchlisttthisarchR Rtval1tval2tval(R'RR+R R*R)R(((RtgetBestArchFromListSs0








cCsP|p
t}n|g}x,ti|ot|}|i|q W|S(N(R(R#R'RRtappend(R(R'((RtgetArchListws
	
cCs|djo|Sntdd}|i}|ixj|D]b}|ido|iddjodSqA|ido|id	djod
SqAqAW|S(NR	s
/proc/cpuinfotrtvendortAuthenticAMDiRtflagstcmovR
(	R topentft	readlinestlinestclosetlinet
startswithtfind(R R9R7R5((RtgetCanonX86Archs

&&cCs|djo|Snd}tdd}|i}|ix<|D]4}|i	ddjo|i
dd}PqGqGW|djo|Sn|i	ddjod	Sn|i	d
djodSn|S(NRs
/proc/cpuinfoR/tmachineit:isCHRP IBMRtiSeriesR(R R"R=R4R5R6R7R8R9R;tsplit(R R5R7R=R9((RtgetCanonPPCArchs$

	
cCs|djo|Snd}tdd}|i}|ix6|D].}|i	do|i
dd}PqGqGW|djo|Sn|iddjod	Sn|id
djodSn|S(NRs
/proc/cpuinfoR/t	vendor_idR>is
Authentic AMDiRtGenuineIntelR(R R"R0R4R5R6R7R8R9R:R@R;(R R0R5R7R9((RtgetCanonX86_64Archs$

	
icCs|oltidtioVyHtdd}|i}|i|i	dd\}}}|SWqtqtXnti
d}t|djo3|ddjo"|dd!djot|Sn|id	ot|Sn|d
jot|Sn|S(Ns/etc/rpm/platformR/t-iiitit86RR(tskipRpmPlatformtostaccesstR_OKR4R5treadlineR9R8R@R R0topersystunameR&R<R:RARD(RHR0R5R RMR9((RR#s"
8
cCsVti|ot|Snti|o&t|djotdt|SndS(NR
R (R$RR RtgetMultiArchInfoR"(R ((RROs
!cCs;t}|djo
d}n|ido
d}n|S(NRRRR(RR R:(R ((RtgetBestArchs


cCs|p
t}nti|p|Sn|djodSn|idodSntd|o$ti|o|Sqt|Snti|o=|}t|}x"|djo|}t|}qW|SndS(sreturns 'base' arch for myarch, if specified, or canonArch if not.
       base arch is the arch before noarch in the arches dict if myarch is not
       a key in the multilibArches.RRRRR R
N(	RR#RRR:R%R$tbasearchtvalue(RRQRR((RtgetBaseArchs*



(sathlonsx86_64sathlon(ssparcssparcssparc64(sppcsppcsppc64(RRR(si686Rsi686(RIR$RRR!R"R%R,R.R<RARDR#RORPRSR(RDRSR,RR%R<R$R.RR!RPRRARIR#RO((Rt?s	3(	
	$			
	

Anon7 - 2021