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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/proc/self/root/usr/lib/python2.4/site-packages/yum/comps.pyo
mò
ýÉODc@s»dkZdkTdklZdkZdZd„Zd„Zdeifd„ƒYZ	de
fd	„ƒYZd
e
fd„ƒYZdfd
„ƒYZ
d„ZedjoeƒndS(N(t*(s	iterparses*{http://www.w3.org/XML/1998/namespace}langcCs0ti|iƒƒot|iƒSntSdS(N(tBOOLEAN_STATESthas_keytstrngtlowertFalse(R((t-/usr/lib/python2.4/site-packages/yum/comps.pyt
parse_booleanscCs
t|ƒS(N(tintR(R((Rtparse_numberstCompsExceptioncBstZRS(N(t__name__t
__module__(((RR
!stGroupcBs_tZdd„Zd„Zd„ZeeƒZd„Zd„Z	d„Z
d„Zd„ZRS(	NcCs¬t|_t|_t|_d|_d|_h|_h|_	h|_
h|_h|_h|_
d|_d|_d|_t|_t|_|o|i|ƒndS(Nti(tTruetselftuser_visibleRtdefaulttselectedtnametdescriptionttranslated_namettranslated_descriptiontmandatory_packagestoptional_packagestdefault_packagestconditional_packagestNonetlangonlytgroupidt
display_ordert	installedttoremovetelemtparse(RR"((Rt__init__%s$																cCs|iS(N(RR(R((Rt__str__;scCs:|iiƒ|iiƒ|iiƒ|iiƒ}|S(N(RRtkeysRRRtlst(RR'((Rt_packageiter>s6cCs+|ii|o|i|Sn|iSdS(N(RRRtlangR(RR)((Rt
nameByLangHscCs+|ii|o|i|Sn|iSdS(N(RRRR)R(RR)((RtdescriptionByLangOscCsüxõ|D]í}|idjo0|i}|idj	o
t‚n||_q|idjoZ|i}|o|i	dƒ}n|i
itƒ}|o||i|<qô||_q|idjoZ|i}|o|i	dƒ}n|i
itƒ}|o||i|<qô||_q|idjot|iƒ|_q|idjot|iƒ|_q|idjot|iƒ|_q|idjo0|i}|idj	o
t‚n||_q|id	jo|i|ƒqqWdS(
NtidRtutf8RtuservisibleRRRtpackagelist(R"tchildttagttextR,RRRR
tencodetattribtgett	lang_attrR)RRRRRRR	RRRtparse_package_list(RR"R)R2R0R,((RR#UsH	

	
	
	

cCsðxé|D]á}|idjoË|iidƒ}|p
d}n|d
jo
t‚n|i}|djod|i
|<qè|djod|i|<qè|djod|i|<qè|djo|iid	ƒ|i
|<qèqqWdS(Nt
packagereqttypeu	mandatoryt	mandatoryRtoptionaltconditionalitrequires(R:sdefaultR;R<(tpackagelist_elemR0R1R4R5R9R
R2tpackageRRRRR(RR>R?R0R9((RR7‡s"


	



cCs1x$|iiƒD]}d|i|<qWx$|iiƒD]}d|i|<q7Wx$|iiƒD]}d|i|<q^Wx+|iiƒD]}|i||i|<q…WxB|iiƒD]1}|ii
|ƒp|i||i|<q³q³WxB|iiƒD]1}|ii
|ƒp|i||i|<qøqøWdS(s'Add another group object to this objectiN(tobjRR&tpkgRRRRRR)RR(RR@R)RA((Rtadds*(
RRRR$R%R(tpropertytpackagesR*R+R#R7RB(((RR
$s					2	tCategorycBsMtZdd„Zd„Zd„ZeeƒZd„Zd„Z	d„Z
RS(NcCs[d|_d|_d|_h|_h|_d|_h|_|o|i
|ƒndS(NRi(RRRt
categoryidRRRRt_groupsR"R#(RR"((RR$ºs							cCs|iS(N(RR(R((RR%ÆscCs
|iiƒS(N(RRGR&(R((Rt
_groupiterÉscCspxi|D]a}|idjo0|i}|idj	o
t‚n||_q|idjoZ|i}|o|i	dƒ}n|i
itƒ}|o||i|<qh||_q|idjoZ|i}|o|i	dƒ}n|i
itƒ}|o||i|<qh||_q|idjo|i|ƒq|idjot|iƒ|_qqWdS(NR,RR-Rt	grouplistR(R"R0R1R2R,RRFRR
R3R4R5R6R)RRRRtparse_group_listR	R(RR"R)R2R0R,((RR#Îs6	

	
	
cCs?x8|D]0}|idjo|i}d|i|<qqWdS(NRi(tgrouplist_elemR0R1R2RRRG(RRKRR0((RRJòs
	cCs¯x|iD]}d|i|<q
WxB|iiƒD]1}|ii|ƒp|i||i|<q1q1WxB|i	iƒD]1}|i	i|ƒp|i	||i	|<qvqvWdS(s*Add another category object to this objectiN(
R@tgroupstgrpRRGRR&R)RR(RR@R)RM((RRBøs
(RRRR$R%RHRCRLR#RJRB(((RRE¹s			$	tCompscBsntZed„Zd„Zd„Zd„ZeeƒZeeƒZ	d„Z
d„Zdd„Z
d„ZRS(	NcCs1h|_h|_d|_||_t|_dS(Ni(RRGt_categoriest
compscounttoverwrite_groupsRtcompiled(RRQ((RR$	s
				cCs>|i|ijodSn |i|ijodSndSdS(Niiiÿÿÿÿ(titem1Rtitem2(RRSRT((Rt__sort_orders
cCs#|iiƒ}|i|iƒ|S(N(RRGtvaluestgrpstsortt_Comps__sort_order(RRW((Rt
get_groupsscCs#|iiƒ}|i|iƒ|S(N(RRORVtcatsRXRY(RR[((Rtget_categoriesscCs"|i|ƒ}|otSntS(N(Rtreturn_grouptgrpidtexistsRR(RR^R_((Rt	has_group*scCsw|ii|ƒo|i|SnxN|iD]C}|i|ig}|i	|i
iƒƒ||jo|Sq,q,WdS(N(
RRGRR^RLtgroupRRtnamestextendRRVR(RR^RaRb((RR]2s

c
CsS|p
t‚nt|ƒtdƒjot|dƒ}	n|}	|id7_t|_t	|	ƒ}xâ|D]Ú\}}|i
djoWt|ƒ}|ii|iƒo!|i|i}|i|ƒqá||i|i<n|i
djoWt|ƒ}|ii|iƒo!|i|i}|i|ƒqH||i|i<qnqnW~dS(NtstrtrtiRatcategory(tsrcfileR
R9topentinfileRRPRRRt	iterparsetparserteventR"R1R
RaRGRRt	thatgroupRBRERfRORFtthatcat(
RRgRfRkR"RnRlRmRaRi((RRBAs.
	cCsh}	x'|D]\}}}}}d|	|<q
WxÙ|iD]Î}
t
|
iiƒƒdjoK|
iiƒ}t|
_x‘|D]$}|	i|ƒpt|
_Pq{q{Wq:|
iiƒ|
iiƒ|
iiƒ}t|
_x,|D]$}|	i|ƒot|
_PqàqàWq:Wt|_dS(s4 compile the groups into installed/available groups iiN(tinst_pkg_namest
pkgtuplisttntatetvtrRRLRatlenRR&t
check_pkgsRR tpkgnameRRRRRRR(RRpRrRsRxRwRtRqRuRoRa((Rtcompileds.
		
)		
(RRRR$RYRZR\RCRLt
categoriesR`R]RRBRy(((RRNs						#cCsìy­tidGHtƒ}x"tidD]}|i|ƒq&Wx3|iD](}|GHx|iD]}d|GHq\WqGWx6|i
D]+}|iGHx|iD]}d|GHq•Wq}WWn8t
j
o,tidtidIJtidƒnXdS(Nis  snewcomps.py: No such file:'%s'(tsystargvRNtpRgRBRLRaRDRARzRfRtIOErrortstderrtexit(RfRaRgR}RA((Rtmain…s*	



t__main__(R{t	constantstcElementTreeRjt
exceptionsR6RR	t	ExceptionR
tobjectR
RERNRR(RERR
R	R{R
RjR…RR6RN((Rt?s	
			•O}	


Anon7 - 2021