KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21573/root/usr/lib/python2.4/site-packages/yum/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21573/root/usr/lib/python2.4/site-packages/yum/plugins.pyc
m
Pc@sdkZdkZdkZdkZdkZdkZdkZdkZdkTydk	i
ZWnej
odkZnXdk
Z
dkZdklZdklZdkZdklZdklZdklZdZdefd	YZd
ZdZedZeefZ hdd
<dd<dd<dd<dd<dd<dd<dd<dd<dd<dd<dd<d d!<d"d!<Z!e!i"Z#d#e$fd$YZ%d%fd&YZ&d'fd(YZ'dfd)YZ(d
e(fd*YZ)de)fd+YZ*de(fd,YZ+de+fd-YZ,de,fd.YZ-de-fd/YZ.de-fd0YZ/d!e/fd1YZ0d2Z1d3Z2dS(4N(t*(sConfigPreProcessor(sfill(sproxy(t_(s
utf8_widths2.6t
DeprecatedIntcBstZdZRS(sV
    A simple int subclass that used to check when a deprecated constant is used.
    (t__name__t
__module__t__doc__(((t//usr/lib/python2.4/site-packages/yum/plugins.pyRFsiitconfigtConfigPluginConduitt
postconfigtPostConfigPluginConduittinittInitPluginConduittpredownloadtDownloadPluginConduittpostdownloadtprereposetuptPreRepoSetupPluginConduitt
postreposetuptPostRepoSetupPluginConduittcloset
PluginConduittcleantpretranstMainPluginConduitt	posttranstexcludet
preresolvetDepsolvePluginConduittpostresolvet
PluginYumExitcBs&tZdZdddZdZRS(s3Used by plugins to signal that yum should stop
    tcCs||_||_dS(N(tvaluetselfttranslation_domain(R!R R"((Rt__init__is	cCs/|ioti|i|iSn|iSdS(N(R!R"tgettexttdgettextR (R!((Rt__str__ls
(RRRR#R&(((RRfst
YumPluginscBsbtZdZeeeeedZdZdZedZdZ	dZ
dZRS(s(
    Manager class for Yum plugins.
    c
Cs-|p
dg}n||_||_t||_||_d|_ti	d|_
||_||_|djo
t}nt|ttfp
|f}nttg}|D]}	|t|	q~jo|i
itidn|i|h|_ti|id|iddS(svInitialise the instance.

        @param base: The
        @param searchpath: A list of paths to look for plugin modules.
        @param optparser: The OptionParser instance for this run (optional).
            Use to allow plugins to extend command line options.
        @param types: A sequence specifying the types of plugins to load.
            This should be sequnce containing one or more of the TYPE_...
            constants. If None (the default), all plugins will be loaded.
        @param pluginconfpath: A list of paths to look for plugin configuration
            files. Defaults to "/etc/yum/pluginconf.d".
        s/etc/yum/pluginconf.dsyum.verbose.YumPluginsseDeprecated constant TYPE_INTERFACE during plugin initialization.
Please use TYPE_INTERACTIVE instead.RRN(NN( tpluginconfpatht
searchpathR!tweakreftbaset	optparsertNonetcmdlinetloggingt	getLoggertverbose_loggertdisabledtdisabledPluginstenabledtenabledPluginsttypest	ALL_TYPESt
isinstancetlistttupletidtTYPE_INTERFACEt_[1]tttlogt
logginglevelstINFO_2t_importpluginstcmdlinestatexittregistertrun(
R!R+R)R,R6R(R2R4R=R>((RR#ws,

						


4
	cKsti|d}|djotd|nt|}xf|i|D]W\}}|iit
id|||i|\}}||||i||qMWdS(s5Run all plugin functions for the given slot.
        sunknown slot name "%s"s$Running "%s" handler for "%s" pluginN(tSLOT_TO_CONDUITtgettslotnameR-t
conduitclst
ValueErrortevalR!t_pluginfuncstmodnametfuncR1R?R@tDEBUG_4t_pluginsRtconfR+tkwargs(R!RIRSRJRRRNROR((RRFs

c

Cs!h|_h|_xtD]}g|i|<qWt|_t|_x_|iD]T}	t
ii|	pqRnx1t
tid|	D]}|i||qWqRW|io|iitiotd}dit
|i}dt|dd}d}t|ido|iii }n|ii!ti"t#|d	|d
|d|n|i$oLxI|i$D]:}||ijo$|ii!ti"td|qyqyWn|`|i&oLxI|i&D]:}||ijo$|ii!ti"td|qqWn|`d
S(s/Load plugins matching the given types.
        s%s/*.pysLoaded plugins: s, t is: iPttermtwidthtinitial_indenttsubsequent_indentsNo plugin match for: %sN('R!RQRMtSLOTStslottsett_used_disable_plugint_used_enable_pluginR)tdirtostpathtisdirtsortedtglobt
modulefilet_loadpluginR6R1tisEnabledForR@tDEBUG_3Rtkeytjointvalt
utf8_widthtnxtRVthasattrR+RUtcolumnsR?RAtfillR3twcR5(
R!R6RZRlRpRjRdRVRhR^((RRBsN		
!



cCsR|djotSnx6|D].}ti||o|i|tSqqWtS(s; Check if this plugin has been temporary enabled/disabled. N(	tpluginsR-tFalseRptfnmatchRNtusedtaddtTrue(RNRqRtRp((Rt_plugin_cmdline_matchs

cCsLtii|\}
}	|	idd}	|i|	}|p@t	i
|ddt	ito>|i
|	|i|io!|iitd|	dSnyLti|	|
g\}}}zti|	|||}Wd|iXWnB|iition|iitd|	dSnXt|dp"|iitd	|	dSnt t!|i"p.|iitd
|	|i"t!fdSnt#|dt$}t&|t't(fp
|f}nt)|djodSnxY|D]Q}
t+|
t+t,jo|ii-ti.d
|	n|
|jodSqqW|i
|	|i0|i1o%|i
|	|i|iodSn|ii-ti2td|	|i3i4|	p||f|i3|	<nt5i6td|	xOt7D]G}|d}t||o'|i:|i;|	t#||fqqWdS(sYAttempt to import a plugin module and register the hook methods it
        uses.
        s.pyitmainR4s*Not loading "%s" plugin, as it is disabledNsPlugin "%s" can't be importedtrequires_api_versions0Plugin "%s" doesn't specify required API versions1Plugin "%s" requires API %s. Supported API is %s.tplugin_typeisYPlugin "%s" uses deprecated constant TYPE_INTERFACE.
Please use TYPE_INTERACTIVE instead.sLoading "%s" pluginsFTwo or more plugins with the name "%s" exist in the plugin search patht_hook(<R_R`tsplitRdR^RNR!t_getpluginconfRRRt	getOptiont
BoolOptionRrRwR5R]R1tdebugRtimptfind_moduletfptpathnametdescriptiontload_moduletmoduleRRfR@RPterrorRmtapiveroktAPI_VERSIONRytgetattrR7tplugintypesR8R9R:tlent
plugintypeR;R<R?RAR6R3R\RgRQthas_keytErrorstConfigErrorRYRZtfuncnameRMtappend(R!RdR6RRRRRZRRRNRRRR^((RResj#&


cCsx|iD]Z}tii||d}ti|ti	oPn|i
iti
td|q
W|i
iti
td|dSti}t|}y|i|Wn7tij
o(}tid|t|fnX|S(sParse the plugin specific configuration file and return a
        IncludingConfigParser instance representing it. Returns None if there
        was an error reading or parsing the configuration file.
        s.confsConfiguration file %s not founds/Unable to find configuration file for plugin %ssCouldn't parse %s: %sN(R!R(R^R_R`RiRNtconffilenametaccesstR_OKR1R?R@RARR-tConfigParsertparsertConfigPreProcessort
confpp_objtreadfptParsingErrorteRRtstr(R!RNRRRRR^((RR}Hs 
$ $cCs||f|_dS(sLSet the parsed command line options so that plugins can access them
        N(toptstcommandsR!R.(R!RR((Rt
setCmdLineas(RRRR-R#RFRBtstaticmethodRwReR}R(((RR'rs-		.	W	tDummyYumPluginscBs tZdZdZdZRS(s
    This class provides basic emulation of the YumPlugins class. It exists so
    that calls to plugins.run() don't fail if plugins aren't in use.
    cOsdS(N((R!targsRS((RRFlscOsdS(N((R!RRS((RRos(RRRRFR(((RRgs	cBsntZdZdZdZdZdZdZddZ	ddZ
dd	Zdd
ZRS(NcCsC||_||_||_tid|_	tid|_
dS(Ns
yum.pluginsyum.verbose.plugin(tparentR!t_parentR+t_baseRRt_confR/R0tloggerR1(R!RR+RR((RR#ss
			cCs&ti|}|ii||dS(N(R@tlogLevelFromDebugLeveltleveltconverted_levelR!R1R?tmsg(R!RRR((Rtinfo{scCs&ti|}|ii||dS(N(R@tlogLevelFromErrorLevelRRR!RR?R(R!RRR((RRscCs9|id||iiiodSn|iiSdS(Nii(R!RRRRRt	assumeyestuserconfirm(R!R((RtpromptYNscCsdk}|iS(N(tyumt__version__(R!R((Rt
getYumVersions	cCs
|iiS(sReturn the optparse.OptionParser instance for this execution of Yum

        In the "config" and "init" slots a plugin may add extra options to this
        instance to extend the command line options that Yum exposes.

        In all other slots a plugin may only read the OptionParser instance.
        Any modification of the instance at this point will have no effect. 
        
        See the getCmdLine() method for details on how to retrieve the parsed
        values of command line options.

        @return: the global optparse.OptionParser instance used by Yum. May be
            None if an OptionParser isn't in use.
        N(R!RR,(R!((RtgetOptParserscCs"ti|i||ti|S(s4Read a string value from the plugin's own configuration file

        @param section: Configuration file section to read.
        @param opt: Option name to read.
        @param default: Value to read if option is missing.
        @return: String option value read, or default if option was missing.
        N(RR~R!RtsectiontopttOptiontdefault(R!RRR((Rt
confStringscCs"ti|i||ti|S(sZRead an integer value from the plugin's own configuration file

        @param section: Configuration file section to read.
        @param opt: Option name to read.
        @param default: Value to read if option is missing.
        @return: Integer option value read, or default if option was missing or
            could not be parsed.
        N(RR~R!RRRt	IntOptionR(R!RRR((RtconfIntscCs"ti|i||ti|S(sURead a float value from the plugin's own configuration file

        @param section: Configuration file section to read.
        @param opt: Option name to read.
        @param default: Value to read if option is missing.
        @return: Float option value read, or default if option was missing or
            could not be parsed.
        N(RR~R!RRRtFloatOptionR(R!RRR((Rt	confFloatscCs"ti|i||ti|S(sYRead a boolean value from the plugin's own configuration file

        @param section: Configuration file section to read.
        @param opt: Option name to read.
        @param default: Value to read if option is missing.
        @return: Boolean option value read, or default if option was missing or
            could not be parsed.
        N(RR~R!RRRRR(R!RRR((RtconfBools(
RRR#RRRRRR-RRRR(((RRrs						cBstZdZdZRS(NcCstidthtti<tti<tti	<t
ti<}|tjo!tti||||n|tjo!tti||||nQ|tjoC|||}tti||tti|ti|ndS(sRegister a yum configuration file option.

        @param name: Name of the new option.
        @param valuetype: Option type (PLUG_OPT_BOOL, PLUG_OPT_STRING ...)
        @param where: Where the option should be available in the config file.
            (PLUG_OPT_WHERE_MAIN, PLUG_OPT_WHERE_REPO, ...)
        @param default: Default value for the option if not set by the user.
        suregisterOpt() will go away in a future version of Yum.
Please manipulate config.YumConf and config.RepoConf directly.N(twarningstwarntDeprecationWarningtPLUG_OPT_STRINGRRtPLUG_OPT_INTRt
PLUG_OPT_BOOLRtPLUG_OPT_FLOATRttype2opttwheretPLUG_OPT_WHERE_MAINtsetattrtYumConftnamet	valuetypeRtPLUG_OPT_WHERE_REPOtRepoConftPLUG_OPT_WHERE_ALLtoptiontInherit(R!RRRRRR((RtregisterOpts	6
!
!
cCs@t|ido|ii|ntitddS(NtregisterCommands&registration of commands not supported(RmR!RRtcommandRRR(R!R((RRs(RRRR(((RRs	cBstZdZRS(NcCs
|iiS(N(R!RRR(R!((RtgetConfs(RRR(((RR
scBstZdZdZRS(NcCs
|iiS(N(R!RRR(R!((RRscCs
|iiS(stReturn Yum's container object for all configured repositories.

        @return: Yum's RepoStorage instance
        N(R!Rtrepos(R!((RtgetReposs(RRRR(((RRs	cBstZdZdZRS(NcCs
|iiS(s{Return parsed command line options.

        @return: (options, commands) as returned by OptionParser.parse_args()
        N(R!RR.(R!((Rt
getCmdLinescCs
|iiS(sReturn a representation of local RPM database. This allows querying
        of installed packages.

        @return: rpmUtils.RpmDBHolder instance
        N(R!Rtrpmdb(R!((RtgetRpmDBs(RRRR(((RRs	cBstZdZRS(NcCs
|iiS(sMReturn group information.

        @return: yum.comps.Comps instance
        N(R!Rtcomps(R!((Rt	getGroupss(RRR(((RRscBs&tZddZdZdZRS(NcCs,ti||||||_||_	dS(N(
RR#R!RR+RRtpkglistt_pkglistterrorst_errors(R!RR+RRRR((RR#"s	cCs|iS(sYReturn a list of package objects representing packages to be
        downloaded.
        N(R!R(R!((RtgetDownloadPackages'scCs|iphSn|iS(sReturn a dictionary of download errors. 
        
        The returned dictionary is indexed by package object. Each element is a
        list of strings describing the error.
        N(R!R(R!((Rt	getErrors-s
(RRR-R#RR(((RR s	cBs/tZddZdZdZdZRS(NcCs-|o
|i}nd}|iii|S(N(trepoR;targR-R!RtpkgSacktreturnPackages(R!RR((RtgetPackages9s
cCs|ii|S(s
Retrieve a package object from the packages loaded by Yum using
        nevra information 
        
        @param nevra: A tuple holding (name, epoch, version, release, arch)
            for a package
        @return: A PackageObject instance (or subclass)
        N(R!RtgetPackageObjecttnevra(R!R((RtgetPackageByNevra@scCs|iii|dS(N(tpoRtsackt
delPackage(R!R((RRJscCs
|iiS(N(R!RttsInfo(R!((Rt	getTsInfoMs(RRR-RRRR(((RR7s	
	cBstZdgdZRS(NcCs,ti||||||_||_	dS(N(
RR#R!RR+RRtrescodet
resultcodetrestringtresultstring(R!RR+RRRR((RR#Qs	(RRR-R#(((RRPscCs+|id\}}t|t|fS(Nt.(tapiverR|tmajtmintint(RRR((RtparseverWscCsVt|}t|}|d|djodSn|d|djodSndS(s<Return true if API version "a" supports API version "b"
    iiN(Rtatb(RR((RR[s(3R_RcRRRDR$R/R@t	constantstiniparse.compattcompatRtImportErrorRRRRttextwrapRoRsR*tproxyRRtyum.i18nRkRRRt	TYPE_COREtTYPE_INTERACTIVER<R7RGtkeysRYt	ExceptionRR'RRRR
RRRRRRRR('RRRR7RDR
R'RRRoRRGRR$R@RR<RYRRRRRRcRRRRRRR/RR*RRRkRsR_R((Rt?sT										

	


\'		

Anon7 - 2021