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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/yum/config.pyc
Ñò
7ÛØJc@sdZeZddkZddkZddkZddkZddkZddkZddk	Z	ddk
lZlZy@ddk
lZddklZlZlZddklZWnej
o
eZnXep0ddklZlZlZddklZnddkZddkZeZeZdefd	„ƒYZd
„Zdefd„ƒYZd
efd„ƒYZ defd„ƒYZ!defd„ƒYZ"de"fd„ƒYZ#defd„ƒYZ$defd„ƒYZ%defd„ƒYZ&defd„ƒYZ'de'fd„ƒYZ(defd „ƒYZ)d!e)fd"„ƒYZ*d#efd$„ƒYZ+d%e+fd&„ƒYZ,d'e,fd(„ƒYZ-d)e+fd*„ƒYZ.d+e+fd,„ƒYZ/d-„Z0d.„Z1d/d0„Z2d1„Z3d2„Z4d3„Z5dd4„Z7dS(5s2
Configuration parser and default values for yum.
iÿÿÿÿN(tConfigPreProcessort
varReplace(t	INIConfig(tNoSectionErrort
NoOptionErrortParsingError(tRawConfigParser(tConfigParsertOptioncBsYeZdZd	d„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d„ZRS(
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 |iƒt|_||_dS(N(t_setattrnametFalsetinherittdefault(tselfR((s./usr/lib/python2.6/site-packages/yum/config.pyt__init__8s
	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.pyR	=scCs%|djo|St||idƒS(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(R
tobjtobjtype((s./usr/lib/python2.6/site-packages/yum/config.pyt__get__Cs	
cCsrt|tƒoKy|i|ƒ}Wq[tj
o%}td|t|ƒfƒ‚q[Xnt||i|ƒdS(sÑCalled 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 %r: %sN(t
isinstancet
basestringtparset
ValueErrortstrtsetattrR(R
Rtvaluete((s./usr/lib/python2.6/site-packages/yum/config.pyt__set__Qs%cCs#t||iti|iƒƒdS(sßInitialise 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(RRtcopyR(R
Rtname((s./usr/lib/python2.6/site-packages/yum/config.pytsetupbscCsti|ƒ}|iƒ|S(s3Return a safe copy of this Option instance
        (RR	(R
tnew((s./usr/lib/python2.6/site-packages/yum/config.pytcloneks
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.
        ((R
ts((s./usr/lib/python2.6/site-packages/yum/config.pyRrs	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(R
R((s./usr/lib/python2.6/site-packages/yum/config.pyttostring}s	N(t__name__t
__module__t__doc__RRR	RRR!R#RR%(((s./usr/lib/python2.6/site-packages/yum/config.pyR/s							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.pytInheritˆs		t
ListOptioncBs,eZdZdd„Zd„Zd„ZRS(s1
    An option containing a list of strings.
    cCs1|djo
g}ntt|ƒi|ƒdS(N(RtsuperR-R(R
R((s./usr/lib/python2.6/site-packages/yum/config.pyR›s

cCs.|iddƒ}|iddƒ}|iƒS(sConverts a string from the config file to a workable list

        Commas and spaces are used as separators for the list
        s
t t,(treplacetsplit(R
R$((s./usr/lib/python2.6/site-packages/yum/config.pyR scCs
di|ƒS(Ns
 (tjoin(R
R((s./usr/lib/python2.6/site-packages/yum/config.pyR%«sN(R&R'R(RRRR%(((s./usr/lib/python2.6/site-packages/yum/config.pyR-•s	t	UrlOptioncBs2eZdZdd	ed„Zd„Zd„ZRS(
sN
    This option handles lists of URLs with validation of the URL scheme.
    thttptftptfilethttpscCs,tt|ƒi|ƒ||_||_dS(N(R.R4Rtschemest
allow_none(R
RR9R:((s./usr/lib/python2.6/site-packages/yum/config.pyR³s	cCs“|iƒ}|iƒdjo|iodStdƒ‚nti|ƒ\}}}}}}||ijo td|iƒ|fƒ‚n|S(Nt_none_s"_none_" is not a valid valuesURL must be %s not "%s"(tstriptlowerR:RRturlparseR9t_schemelist(R
turlR$tbtptqtfto((s./usr/lib/python2.6/site-packages/yum/config.pyR¹s
! cCsft|iƒdjodSt|iƒdjo|idSddi|id ƒ|idfSdS(s;Return a user friendly list of the allowed schemes
        itemptyis%s or %ss, iÿÿÿÿN(tlenR9R3(R
((s./usr/lib/python2.6/site-packages/yum/config.pyR?Ês
N(R5R6sfileR8(R&R'R(RR
RRR?(((s./usr/lib/python2.6/site-packages/yum/config.pyR4®s
	t
UrlListOptioncBs&eZdZddd„Zd„ZRS(	sN
    Option for handling lists of URLs with validation of the URL scheme.
    R5R6R7R8cCs,tt|ƒi|ƒtd|ƒ|_dS(NR9(R.RHRR4t
_urloption(R
RR9((s./usr/lib/python2.6/site-packages/yum/config.pyRÙscCs¯g}|iddƒ}|iddƒ}g}ti|ƒD]}||iddƒq>~}di|ƒ}x9tt|ƒi|ƒD]}|i|ii|ƒƒqˆW|S(Ns
R/R0s%20(	R1tshlexR2R3R.RHRtappendRI(R
R$toutt_[1]titemtitemsR@((s./usr/lib/python2.6/site-packages/yum/config.pyRßs6N(shttpsftpsfileshttps(R&R'R(RRR(((s./usr/lib/python2.6/site-packages/yum/config.pyRHÔst	IntOptioncBs)eZdZdddd„Zd„ZRS(s2
    An option representing an integer value.
    cCs,tt|ƒi|ƒ||_||_dS(N(R.RPRt
_range_mint
_range_max(R
Rt	range_mint	range_max((s./usr/lib/python2.6/site-packages/yum/config.pyRðs	cCsžyt|ƒ}Wn'ttfj
o}tdƒ‚nX|idj	o ||ijotdƒ‚n|idj	o ||ijotdƒ‚n|S(Nsinvalid integer valuesout of range integer value(tintRt	TypeErrorRRRRQ(R
R$tvalR((s./usr/lib/python2.6/site-packages/yum/config.pyRõs  N(R&R'R(RRR(((s./usr/lib/python2.6/site-packages/yum/config.pyRPêstPositiveIntOptioncBs,eZdZddddd„Zd„ZRS(sg
    An option representing a positive integer value, where 0 can have a special
    represention.
    icCs)tt|ƒi|||ƒ||_dS(N(R.RXRt_names0(R
RRSRTt
names_of_0((s./usr/lib/python2.6/site-packages/yum/config.pyRscCs+||ijodStt|ƒi|ƒS(Ni(RYR.RXR(R
R$((s./usr/lib/python2.6/site-packages/yum/config.pyRsN(R&R'R(RRR(((s./usr/lib/python2.6/site-packages/yum/config.pyRXs	t
SecondsOptioncBs9eZdZhd
d6dd6dd6dd6Zd„ZRS(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|ƒdjotdƒ‚n|djp
|djodS|diƒoN|d }|diƒ}|ii|dƒ}|ptd|ƒ‚q­n
|}d}yt|ƒ}Wn'ttfj
o}tdƒ‚nX|djotd	ƒ‚nt	||ƒS(
Nisno value specifieds-1tneveriÿÿÿÿsunknown unit '%s's
invalid valueis!seconds value may not be negative(
RGRtisalphaR=tMULTStgetRtfloatRVRU(R
R$tntunittmultR((s./usr/lib/python2.6/site-packages/yum/config.pyR!s&

ii€Qi(R&R'R(RaR(((s./usr/lib/python2.6/site-packages/yum/config.pyR[s
"t
BoolOptioncBs eZdZd„Zd„ZRS(sm
    An option representing a boolean value.

    The value can be one of 0, 1, yes, no, true, or false.
    cCs@|iƒ}|djotS|d	jotStdƒ‚dS(
Nt0tnotfalset1tyesttruesinvalid boolean value(RhRiRj(RkRlRm(R=R
R)R(R
R$((s./usr/lib/python2.6/site-packages/yum/config.pyRCs

cCs|odSdSdS(NRkRh((R
R((s./usr/lib/python2.6/site-packages/yum/config.pyR%Ls(R&R'R(RR%(((s./usr/lib/python2.6/site-packages/yum/config.pyRg;s		tFloatOptioncBseZdZd„ZRS(s7
    An option representing a numeric float value.
    cCs@yt|iƒƒSWn%ttfj
otdƒ‚nXdS(Nsinvalid float value(RcR<RRV(R
R$((s./usr/lib/python2.6/site-packages/yum/config.pyRVs(R&R'R(R(((s./usr/lib/python2.6/site-packages/yum/config.pyRnRstSelectionOptioncBs)eZdZddhd„Zd„ZRS(sAHandles string values where only specific values are allowed
    cCs,tt|ƒi|ƒ||_||_dS(N(R.RoRt_allowedt_mapper(R
Rtallowedtmapper((s./usr/lib/python2.6/site-packages/yum/config.pyR_s	cCsI||ijo|i|}n||ijotd|ƒ‚n|S(Ns"%s" is not an allowed value(RqRpR(R
R$((s./usr/lib/python2.6/site-packages/yum/config.pyRds
N((R&R'R(RRR(((s./usr/lib/python2.6/site-packages/yum/config.pyRo\stCaselessSelectionOptioncBseZdZd„ZRS(s_ Mainly for compat. with BoolOption, works like SelectionOption but
        lowers input case. cCstt|ƒi|iƒƒS(N(R.RtRR=(R
R$((s./usr/lib/python2.6/site-packages/yum/config.pyRos(R&R'R(R(((s./usr/lib/python2.6/site-packages/yum/config.pyRtkstBytesOptioncBs2eZdZhdd6dd6dd6Zd„ZRS(	s|
    An option representing a value in bytes.

    The value may be given in bytes, kilobytes, megabytes, or gigabytes.
    itkR^tgcCsït|ƒdjotdƒ‚n|diƒoN|d }|diƒ}|ii|dƒ}|ptd|ƒ‚qŽn
|}d}yt|ƒ}Wn#tj
otd|ƒ‚nX|djotdƒ‚nt||ƒS(	sûParse 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 specifiediÿÿÿÿsunknown unit '%s'scouldn't convert '%s' to numberisbytes value may not be negativeN(	RGRR`R=RaRbRRcRU(R
R$RdReRf((s./usr/lib/python2.6/site-packages/yum/config.pyR€s"

iii@(R&R'R(RaR(((s./usr/lib/python2.6/site-packages/yum/config.pyRurs
tThrottleOptioncBseZdZd„ZRS(sv
    An option representing a bandwidth throttle value. See
    ThrottleOption.parse for acceptable input values.
    cCs»t|ƒdjotdƒ‚n|ddjos|d }yt|ƒ}Wn#tj
otd|ƒ‚nX|djp
|djotdƒ‚n|d	Sti||ƒSd
S(s¼Get 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 specifiediÿÿÿÿt%scouldn't convert '%s' to numberiidspercentage is out of rangegY@N(RGRRcRuR(R
R$Rd((s./usr/lib/python2.6/site-packages/yum/config.pyR®s
	(R&R'R(R(((s./usr/lib/python2.6/site-packages/yum/config.pyRx§st
BaseConfigcBseZdZd„Zd„Zdd„Zed„Ze	eƒZd„Z
e	e
ƒZ
d„Zd„Zddd„Z
dd	„Zd
„ZRS(
sk
    Base class for storing configuration definitions. Subclass when creating
    your own definitons.
    cCsCd|_x3|iƒD]%}|i|ƒ}|i||ƒqWdS(N(Rt_sectiontiterkeyst	optionobjR!(R
R toption((s./usr/lib/python2.6/site-packages/yum/config.pyRÑs
	
cCs[g}|id|iƒx1|iƒD]#\}}|id||fƒq'Wdi|ƒS(Ns[%s]s%s: %rs
(RKR{t	iteritemsR3(R
RLR R((s./usr/lib/python2.6/site-packages/yum/config.pyt__str__Øs
cCsÜ||_||_|i|ƒot|i|ƒƒ}n
tƒ}x‘|iƒD]ƒ}|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(tcfgR{thas_sectiontsettoptionsR|R}RRbRRR(R
tparsertsectiontparenttoptsR R~R((s./usr/lib/python2.6/site-packages/yum/config.pytpopulateßs			


cCs@t||dƒ}t|tƒo|S|o
t‚ndSdS(s6Return the Option instance for the given name
        N(RRRRtKeyError(tclsR t
exceptionsR((s./usr/lib/python2.6/site-packages/yum/config.pyR}ûs
cCs|i|dtƒdj	S(sBReturn True if the given name refers to a defined option 
        RŒN(R}R
R(R‹R ((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(R
R ((s./usr/lib/python2.6/site-packages/yum/config.pyR|
s
ccs/x(|iƒD]}|t||ƒfVq
WdS(s‡Yield (name, value) pairs for every option in the instance.

        The value returned is the parsed, validated option value.
        N(R|R(R
R ((s./usr/lib/python2.6/site-packages/yum/config.pyRs
cCsæ|djo-|idjotdƒ‚n|i}n|ii|ƒ}xƒ|iƒD]u\}}|i|ƒ}|djp*||jp|i|jp
||jo#|ii|||i	|ƒƒqYqYW|ii
|ƒdS(sÅWrite 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(RR{RRR„RR}RRƒR%twrite(R
tfileobjR†talwayst
cfgOptionsR RR~((s./usr/lib/python2.6/site-packages/yum/config.pyRs


7'cCs2tidtƒt||ƒot||ƒS|S(NsxgetConfigOption() will go away in a future version of Yum.
Please access option values as attributes or using getattr().(twarningstwarntDeprecationWarningthasattrR(R
R~R((s./usr/lib/python2.6/site-packages/yum/config.pytgetConfigOption6s
	cCsHtidtƒt||ƒ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(R“R”R•R–RtErrorstConfigError(R
R~R((s./usr/lib/python2.6/site-packages/yum/config.pytsetConfigOption>s
	N((R&R'R(RR€RR‰R)R}tclassmethodRR|RRR—Rš(((s./usr/lib/python2.6/site-packages/yum/config.pyRzËs		
				tStartupConfcBs¤eZdZedddƒZedddƒZedƒZedƒZedƒZ	e
eƒZe
ddgƒZe
d	gƒZe
eƒZeƒZed
ƒ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.dt
LOG_DAEMON(R&R'R(RPt
debuglevelt
errorlevelRtdistroverpkgtinstallroottconfig_file_pathRgR
tpluginsR-t
pluginpathtpluginconfpatht
gaftonmodetsyslog_identtsyslog_facility(((s./usr/lib/python2.6/site-packages/yum/config.pyRœGs	tYumConfcBsÃeZdZedddgƒZedddƒZedƒZedƒZ	e
eƒZed	ƒZ
ed
dgƒZeƒZeƒZedƒZed
dCdeƒZeƒZeƒZedddddddddddgƒZeddddddgƒZeddddd ddgƒZegƒZeƒZe
eƒZe
eƒZe
eƒZe
eƒZ e
eƒZ!e
eƒZ"e
eƒZ#e
e$ƒZ%e
e&ƒZ'e
eƒZ(e
eƒZ)e
eƒZ*e
eƒZ+e
eƒZ,ed!d"gƒZ-e.d#ƒZ/e0dƒZ1e2dƒZ3e4d$dDƒZ5e6dFƒZ7e6dHƒZ8e
eƒZ9eƒZ:e
eƒZ;ed*gƒZ<e4d+dIƒZ=ed,ƒZ>e4d-dJd0h
d/d16d/d26d/d36d/d46d.d56d.d66d.d6d.d76d-d86d-d96ƒZ?ed:ƒZ@ed;ƒZAed<ƒZBed=ƒZCed>ƒZDed?ƒZEed@ƒZFed<ƒZGed<ƒZHed:ƒZIed<ƒZJed:ƒZKeƒZLe
eƒZMeƒZNeƒZOe
eƒZPedAdBgƒZQgZRRS(Ks€
    Configuration option definitions for yum.conf's [main] section.

    Note: see also options inherited from StartupConf
    i
RZs	<forever>iRSis/var/cache/yums/var/lib/yums/var/log/yum.logs/etc/yum/repos.ds/etc/yum.repos.dtpriorityR9R5R6R8R:tkernels
kernel-bigmemskernel-enterprises
kernel-smpskernel-modulesskernel-debugskernel-unsupporteds
kernel-sourceskernel-devels
kernel-PAEskernel-PAE-debugiRhs<off>skernel-BOOTt	mandatoryRg>@talltnonetpackagesi<iis
group:primarytbestshttp://yum.baseurl.org/reporttautoR_R‘RstonRlRkRmtoffRiRjtttysif-ttytboldsbold,yellowtnormalsbold,reds	bold,bluesdim,cyansbold,underline,greentyumtrpm(shttpsftpshttps(R¯R°sallii`Tii€Q(R±sall(R²sneversalways(SR&R'R(RXtretriesRPtrecentRtcachedirt
persistdirRgR)t	keepcachetlogfileR-treposdirtcommandstexcludetfailovermethodR4tproxytproxy_usernametproxy_passwordtinstallonlypkgstinstallonly_limittkernelpkgnamest
exactarchlistttsflagsR
t	assumeyestalwayspromptt	exactarchttoleranttdiskspacechecktoverwrite_groupst	keepalivet__pkgs_gpgcheck_default__tgpgcheckt__repo_gpgcheck_default__t
repo_gpgcheckt	obsoletestshowdupesfromrepostenabledtenablegroupstenable_group_conditionalstgroup_package_typesRnttimeoutRut	bandwidthRxtthrottleRothttp_cachingR[tmetadata_expiretmirrorlist_expiretrpm_check_debugtdisable_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sslclientkeythistory_recordthistory_record_packagest
_reposlist(((s./usr/lib/python2.6/site-packages/yum/config.pyRª[s˜										tRepoConfcBs¯eZdZeƒZd„ZeƒZee	i
ƒZ
eƒZe
ƒZe
ƒZeƒZeƒZeƒZeƒZee	iƒZee	iƒZee	iƒZee	iƒZee	iƒZee	iƒZee	iƒZee	iƒZee	iƒZee	iƒZee	iƒZee	i ƒZ ee	i!ƒZ!ee	i"ƒZ"ee	i#ƒZ#ee	i$ƒZ$e%dƒZ&ee	i'ƒZ'ee	i(ƒZ(ee	i)ƒZ)ee	i*ƒZ*RS(s>
    Option definitions for repository INI file sections.
    ccsj|i}t|tƒp
tƒ}n|p |itti|ƒƒƒnx|iD]}|VqWWdS(s@Yield the names of all defined options in the instance.
        N(t_RepoConf__cached_keysRRýRƒtupdatetlistRzR|(R
tckR ((s./usr/lib/python2.6/site-packages/yum/config.pyR|Ës	
 
iè(+R&R'R(RƒRþR|RR R,RªRÙRHtbaseurlR4t
mirrorlisttmetalinktmediaidtgpgkeyR-RÂtincludepkgsRÄRÅRÆRºRÃRÔRÖRÒRÚRÞRßRÝRàRáRâRæRPtcostRöR÷RøRù(((s./usr/lib/python2.6/site-packages/yum/config.pyRýÅsB										tVersionGroupConfcBseZeƒZeeƒZRS((R&R'R-tpkglistRgR
trun_with_packages(((s./usr/lib/python2.6/site-packages/yum/config.pyR	þs	cCsÜ|ti_tƒ}||_tƒ}t|ƒ}y|i|ƒWn(tj
o}ti	d|ƒ‚nX|i
|dƒx5|iD]*}|ddjpti	dƒ‚q‰q‰W||_t
|i|iƒ|_|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 absolute(RœR¢RR£RRtreadfpRR˜R™R‰R¥t_parsert
_getsysverR¡t
releasever(t
configfiletroottstartupconfR…t
confpp_objRtpath((s./usr/lib/python2.6/site-packages/yum/config.pytreadStartupConfigs"			
	cCs2tƒ}|i|d<|i|d<|i|d<tƒ}|i|idƒx[dD]S}t||ƒ}|i|}|i	dd	ƒ}t
||ƒ}t|||ƒqSW||_d
|_
d
|_d
|_|i|_tii|iƒoti|iƒd|_n
d
|_|i|_|i|_|S(s§
    Parse Yum's main configuration file

    @param startupconf: StartupConf instance as returned by readStartupConfig()
    @return: Populated YumConf instance.
    tbasearchtarchRRR¼R¿R½s//Rii(scachedirslogfiles
persistdirN(t
_getEnvVarRRRRªR‰RRR¢R1RRtyumvartuidtcacheRtprogess_objR£tosRtexistststattconfig_file_ageRŸR (RtyumvarstyumconfR~Rtir_path((s./usr/lib/python2.6/site-packages/yum/config.pytreadMainConfig)s0	


	
					s/etc/yum/version-groups.confcCs“tƒ}t|ƒ}y|i|ƒWn(tj
o}tid|ƒ‚nXh}x5|iƒD]'}tƒ||<||i||ƒqdW|S(NsParsing file failed: %s(	RRR
RR˜R™tsectionsR	R‰(RR…RRtretR†((s./usr/lib/python2.6/site-packages/yum/config.pytreadVersionGroupsConfigYs	

cCsCy|i||ƒ}Wnttfj
o|iSX|i|ƒS(s‡Convenience 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.
    (RbRRRR(tconfR†R R~RW((s./usr/lib/python2.6/site-packages/yum/config.pyt	getOptiongs
	cCs^h}xQtddƒD]@}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%dt(trangeRtenvironRbR=(RtnumtenvRW((s./usr/lib/python2.6/site-packages/yum/config.pyRys
cCstiid|ƒ}|ititiBƒy|id|ƒ}Wn‹tj
o}t	i
djoMt|dƒo ti
dt|iƒƒ‚q³ti
dt|ƒƒ‚nti
dt|ƒƒ‚nX|iƒdjo
d}n|iƒ}|d}~~~|S(	sîCalculate 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)
    RtprovidesitmessagesError: is$releasevertversion(trpmUtilsttransactiontinitReadOnlyTransactiontpushVSFlagsR¹t_RPMVSF_NOSIGNATURESt_RPMVSF_NODIGESTStdbMatchRVtsyst
hexversionR–R˜tYumBaseErrorRR1tcounttnext(R¢R¡ttstidxRRthdr((s./usr/lib/python2.6/site-packages/yum/config.pyR†s$ 

cCsîtpdStt|iƒƒ}|ii|iƒ}x‚|iƒD]t\}}|i|ƒ}|i	|jp
||jo<|djp
||jo|i|ƒ||i|<q·qCqCWt|idƒ}|i
t|ƒƒ|iƒdS(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_iniparseRtopentrepofileRR„RRR}RRR%R7RRtclose(trepotonlytiniR’R RR~tfp((s./usr/lib/python2.6/site-packages/yum/config.pytwriteRawRepoFile¦s
&(8R(R)RCRR:R“R¹RR>RJR…RRtiniparseRtiniparse.compatRRRRRtImportErrorR
trpmUtils.transactionR3R˜RÓRÕtobjectRR,R-R4RHRPRXR[RgRnRoRtRuRxRzRœRªRýR	RR%R(R*RRRRK(((s./usr/lib/python2.6/site-packages/yum/config.pyt<module>s`Y	
&*
5$|j9	&	0		
	 

Youez - 2016 - github.com/yon3zu
LinuXploit