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/plugins.pyo
7Jc@sddkZddkZddkZddkZddkZddkZddkZddkZddkTddk	Z	ddk	l
Z
lZddkZddk
lZddklZddkZddklZddklZddklZd	Zd
efdYZdZd
Zed
ZeefZhdd6dd6dd6dd6dd6dd6dd6dd6dd6dd6d d!6d d"6d d#6d$d%6d$d&6Zei Z!d'e"fd(YZ#d)d9d*YZ$d+d:d,YZ%dd;d-YZ&de&fd.YZ'de'fd/YZ(de&fd0YZ)de)fd1YZ*de)fd2YZ+de+fd3YZ,de,fd4YZ-d e,fd5YZ.d$e.fd6YZ/d7Z0d8Z1dS(<iN(t*(tParsingErrortConfigParser(tConfigPreProcessor(tfill(tproxy(t_(t
utf8_widths2.6t
DeprecatedIntcBseZdZRS(sV
    A simple int subclass that used to check when a deprecated constant is used.
    (t__name__t
__module__t__doc__(((s//usr/lib/python2.6/site-packages/yum/plugins.pyRCsiitConfigPluginConduittconfigtPostConfigPluginConduitt
postconfigtInitPluginConduittinittArgsPluginConduittargstDownloadPluginConduittpredownloadtpostdownloadtPreRepoSetupPluginConduittprereposetuptPostRepoSetupPluginConduitt
postreposetupt
PluginConduittclosetcleantMainPluginConduittpretranst	posttranstexcludetDepsolvePluginConduitt
preresolvetpostresolvet
PluginYumExitcBs&eZdZdddZdZRS(s3Used by plugins to signal that yum should stop
    tcCs||_||_dS(N(tvaluettranslation_domain(tselfR'R(((s//usr/lib/python2.6/site-packages/yum/plugins.pyt__init__gs	cCs,|ioti|i|iS|iSdS(N(R(tgettexttdgettextR'(R)((s//usr/lib/python2.6/site-packages/yum/plugins.pyt__str__js
(R	R
RR*R-(((s//usr/lib/python2.6/site-packages/yum/plugins.pyR%dst
YumPluginscBsbeZdZddddddZdZdZedZdZ	dZ
dZRS(	s(
    Manager class for Yum plugins.
    c
Cs-|p
dg}n||_||_t||_||_d|_tid|_	||_
||_|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.RR
N(NN(t
searchpathtpluginconfpathtweakreftbaset	optparsertNonetcmdlinetloggingt	getLoggertverbose_loggertdisabledPluginstenabledPluginst	ALL_TYPESt
isinstancetlistttupletidtTYPE_INTERFACEtlogt
logginglevelstINFO_2t_importpluginstcmdlinestatexittregistertrun(
R)R2R/R3ttypesR0tdisabledtenabledt_[1]tt((s//usr/lib/python2.6/site-packages/yum/plugins.pyR*us*
						


4
	cKsti|d}|djotd|nt|}xf|i|D]W\}}|iiti	d|||i
|\}}||||i||qMWdS(s5Run all plugin functions for the given slot.
        sunknown slot name "%s"s$Running "%s" handler for "%s" pluginN(tSLOT_TO_CONDUITtgetR4t
ValueErrortevalt_pluginfuncsR8RARBtDEBUG_4t_pluginsR2(R)tslotnametkwargst
conduitclstmodnametfuncRtconf((s//usr/lib/python2.6/site-packages/yum/plugins.pyRHs

c
Cs!h|_h|_xtD]}g|i|<qWt|_t|_x_|iD]T}tii	|pqRnx1t
tid|D]}|i||qWqRW|io|i
itiotd}dit
|i}dt|dd}d}t|ido|iii}n|i
itit|d	|d
|d|n|ioLxI|iD]:}	|	|ijo$|i
ititd|	qyqyWn|`|ioLxI|iD]:}	|	|ijo$|i
ititd|	qqWn|`d
S(s/Load plugins matching the given types.
        s%s/*.pysLoaded plugins: s, t is: iPttermtwidthtinitial_indenttsubsequent_indentsNo plugin match for: %sN(RTRRtSLOTStsett_used_disable_plugint_used_enable_pluginR/tostpathtisdirtsortedtglobt_loadpluginR8tisEnabledForRBtDEBUG_3RtjoinRthasattrR2R\tcolumnsRARCRR9R:(
R)RItslottdirt
modulefiletkeytvaltnxtR]twc((s//usr/lib/python2.6/site-packages/yum/plugins.pyRDsN		





cCsL|djotSx3|D]+}ti||o|i|tSqWtS(s; Check if this plugin has been temporary enabled/disabled. N(R4tFalsetfnmatchtaddtTrue(RXtpluginstusedRu((s//usr/lib/python2.6/site-packages/yum/plugins.pyt_plugin_cmdline_matchs

	cCs7tii|\}}|idd}|i|}|p@ti|ddtito;|i||i	|i
o|iit
d|dSyLti||g\}}}zti||||}	Wd|iXWn?|iition|iit
d|dSXt|	dp|iit
d	|dStt|	ip+|iit
d
||	itfdSt|	dt}
t|
ttfp
|
f}
nt|
djodSxV|
D]N}t |t t!jo|ii"ti#d
|n||jodSqW|i||i$|i%o"|i||i	|i
odS|ii"ti&t
d||i'i(|p|	|f|i'|<nt)i*t
d|xOt+D]G}|d}
t|	|
o'|i,|i-|t|	|
fqqWdS(sYAttempt to import a plugin module and register the hook methods it
        uses.
        s.pyitmainRKs*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(.RdRetsplitt_getpluginconfR
t	getOptiont
BoolOptionRvR|R:RcR8tdebugRtimptfind_moduletload_moduleRRjRBRSterrorRmtapiveroktAPI_VERSIONR~tgetattrR;R<R=R>tlenR?R@RARCR9RbRkRTthas_keytErrorstConfigErrorR`RRtappend(R)RqRIRpRXRZtfptpathnametdescriptiontmoduletplugintypest
plugintypeRotfuncname((s//usr/lib/python2.6/site-packages/yum/plugins.pyRis~				

	



cCsx|iD]Z}tii||d}ti|tioPn|iiti	t
d|q
W|iiti	t
d|dSt}t
|}y|i|Wn4tj
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(R0RdReRltaccesstR_OKR8RARBRCRR4RRtreadfpRRRtstr(R)RXRptconffilenametparsert
confpp_objte((s//usr/lib/python2.6/site-packages/yum/plugins.pyRFs"
$	cCs||f|_dS(sLSet the parsed command line options so that plugins can access them
        N(R5(R)toptstcommands((s//usr/lib/python2.6/site-packages/yum/plugins.pyt
setCmdLine_sN(R	R
RR4R*RHRDtstaticmethodR|RiRR(((s//usr/lib/python2.6/site-packages/yum/plugins.pyR.ps,		.	W	tDummyYumPluginscBs eZdZdZdZRS(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)RRV((s//usr/lib/python2.6/site-packages/yum/plugins.pyRHjscOsdS(N((R)RRV((s//usr/lib/python2.6/site-packages/yum/plugins.pyRms(R	R
RRHR(((s//usr/lib/python2.6/site-packages/yum/plugins.pyRes	cBsweZdZdZdZdZdZdZddZ	ddZ
ddZdd	Zd
Z
RS(cCsC||_||_||_tid|_tid|_dS(Ns
yum.pluginsyum.verbose.plugin(t_parentt_baset_confR6R7tloggerR8(R)tparentR2RZ((s//usr/lib/python2.6/site-packages/yum/plugins.pyR*qs
			cCs&ti|}|ii||dS(N(RBtlogLevelFromDebugLevelR8RA(R)tleveltmsgtconverted_level((s//usr/lib/python2.6/site-packages/yum/plugins.pytinfoyscCs&ti|}|ii||dS(N(RBtlogLevelFromErrorLevelRRA(R)RRR((s//usr/lib/python2.6/site-packages/yum/plugins.pyR}scCs6|id||iiiodS|iiSdS(Nii(RRRZt	assumeyestuserconfirm(R)R((s//usr/lib/python2.6/site-packages/yum/plugins.pytpromptYNscCsddk}|iS(Ni(tyumt__version__(R)R((s//usr/lib/python2.6/site-packages/yum/plugins.pyt
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.
        (RR3(R)((s//usr/lib/python2.6/site-packages/yum/plugins.pyt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.
        (R
RRtOption(R)tsectiontopttdefault((s//usr/lib/python2.6/site-packages/yum/plugins.pyt
confStrings	cCs"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.
        (R
RRt	IntOption(R)RRR((s//usr/lib/python2.6/site-packages/yum/plugins.pytconfInts	cCs"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.
        (R
RRtFloatOption(R)RRR((s//usr/lib/python2.6/site-packages/yum/plugins.pyt	confFloats	cCs"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.
        (R
RRR(R)RRR((s//usr/lib/python2.6/site-packages/yum/plugins.pytconfBools	cCs|iii|dS(N(Rtrun_with_package_namesRx(R)tname((s//usr/lib/python2.6/site-packages/yum/plugins.pytregisterPackageNamesN(R	R
R*RRRRRR4RRRRR(((s//usr/lib/python2.6/site-packages/yum/plugins.pyRps						cBseZdZdZRS(cCstidthtit6tit6tit	6ti
t6}|tjo!t
ti||||n|tjo!t
ti||||nQ|tjoC|||}t
ti||t
ti|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(twarningstwarntDeprecationWarningR
RtPLUG_OPT_STRINGRtPLUG_OPT_INTRt
PLUG_OPT_BOOLRtPLUG_OPT_FLOATtPLUG_OPT_WHERE_MAINtsetattrtYumConftPLUG_OPT_WHERE_REPOtRepoConftPLUG_OPT_WHERE_ALLtInherit(R)Rt	valuetypetwhereRttype2opttoption((s//usr/lib/python2.6/site-packages/yum/plugins.pytregisterOpts		




!
!
cCs@t|ido|ii|ntitddS(NtregisterCommands&registration of commands not supported(RmRRRRR(R)tcommand((s//usr/lib/python2.6/site-packages/yum/plugins.pyRs(R	R
RR(((s//usr/lib/python2.6/site-packages/yum/plugins.pyRs	cBseZdZRS(cCs
|iiS(N(RRZ(R)((s//usr/lib/python2.6/site-packages/yum/plugins.pytgetConfs(R	R
R(((s//usr/lib/python2.6/site-packages/yum/plugins.pyRscBseZdZdZRS(cCs
|iiS(N(RRZ(R)((s//usr/lib/python2.6/site-packages/yum/plugins.pyRscCs
|iiS(stReturn Yum's container object for all configured repositories.

        @return: Yum's RepoStorage instance
        (Rtrepos(R)((s//usr/lib/python2.6/site-packages/yum/plugins.pytgetReposs(R	R
RR(((s//usr/lib/python2.6/site-packages/yum/plugins.pyRs	cBseZdZdZRS(cCs#ti||||||_dS(N(RR*t_args(R)RR2RZR((s//usr/lib/python2.6/site-packages/yum/plugins.pyR*
scCs|iS(N(R(R)((s//usr/lib/python2.6/site-packages/yum/plugins.pytgetArgss(R	R
R*R(((s//usr/lib/python2.6/site-packages/yum/plugins.pyRs	cBseZdZdZRS(cCs
|iiS(s{Return parsed command line options.

        @return: (options, commands) as returned by OptionParser.parse_args()
        (RR5(R)((s//usr/lib/python2.6/site-packages/yum/plugins.pyt
getCmdLinescCs
|iiS(sReturn a representation of local RPM database. This allows querying
        of installed packages.

        @return: rpmUtils.RpmDBHolder instance
        (Rtrpmdb(R)((s//usr/lib/python2.6/site-packages/yum/plugins.pytgetRpmDBs(R	R
RR(((s//usr/lib/python2.6/site-packages/yum/plugins.pyRs	cBseZdZRS(cCs
|iiS(sMReturn group information.

        @return: yum.comps.Comps instance
        (Rtcomps(R)((s//usr/lib/python2.6/site-packages/yum/plugins.pyt	getGroups$s(R	R
R(((s//usr/lib/python2.6/site-packages/yum/plugins.pyR"scBs&eZddZdZdZRS(cCs,ti||||||_||_dS(N(RR*t_pkglistt_errors(R)RR2RZtpkglistterrors((s//usr/lib/python2.6/site-packages/yum/plugins.pyR*-s	cCs|iS(sYReturn a list of package objects representing packages to be
        downloaded.
        (R(R)((s//usr/lib/python2.6/site-packages/yum/plugins.pytgetDownloadPackages2scCs|iphS|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.
        (R(R)((s//usr/lib/python2.6/site-packages/yum/plugins.pyt	getErrors8s
N(R	R
R4R*RR(((s//usr/lib/python2.6/site-packages/yum/plugins.pyR+s	cBs/eZddZdZdZdZRS(cCs-|o
|i}nd}|iii|S(N(R?R4RtpkgSacktreturnPackages(R)trepotarg((s//usr/lib/python2.6/site-packages/yum/plugins.pytgetPackagesDs
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)
        (RtgetPackageObject(R)tnevra((s//usr/lib/python2.6/site-packages/yum/plugins.pytgetPackageByNevraKscCs|iii|dS(N(Rtsackt
delPackage(R)tpo((s//usr/lib/python2.6/site-packages/yum/plugins.pyRUscCs
|iiS(N(RttsInfo(R)((s//usr/lib/python2.6/site-packages/yum/plugins.pyt	getTsInfoXsN(R	R
R4RRRR(((s//usr/lib/python2.6/site-packages/yum/plugins.pyRBs	
	cBseZdgdZRS(cCs,ti||||||_||_dS(N(RR*t
resultcodetresultstring(R)RR2RZtrescodetrestring((s//usr/lib/python2.6/site-packages/yum/plugins.pyR*\s	N(R	R
R4R*(((s//usr/lib/python2.6/site-packages/yum/plugins.pyR"[scCs+|id\}}t|t|fS(Nt.(Rtint(tapivertmajtmin((s//usr/lib/python2.6/site-packages/yum/plugins.pytparseverbscCsPt|}t|}|d|djodS|d|djodSdS(s<Return true if API version "a" supports API version "b"
    ii(R(tatb((s//usr/lib/python2.6/site-packages/yum/plugins.pyRfs((((2RdRhRRRFR+R6RBt	constantsR
RRRRRttextwrapRRwR1RRRtyum.i18nRRRRt	TYPE_COREtTYPE_INTERACTIVER@R;RNtkeysR`t	ExceptionR%R.RRRRRRRRRRR"RR(((s//usr/lib/python2.6/site-packages/yum/plugins.pyt<module>sn

`'			

Youez - 2016 - github.com/yon3zu
LinuXploit