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/repos.pyo
m
Pc@sdkZdkZdkZdkZdkZdkZdklZdkl	ZdfdYZ
dfdYZdfdYZdS(	N(sMetaSack(sproxyt_wrap_ayum_getKeyForRepocBs#tZdZdZedZRS(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(tweakreftayumtself(RR((t-/usr/lib/python2.4/site-packages/yum/repos.pyt__init__#scCs|ii||S(N(RRt
getKeyForRepotrepotcallback(RRR((Rt__call__%s(t__name__t
__module__t__doc__RtNoneR	(((RRs	tRepoStoragecBstZdZdZedZdZdZdZdZ	dZ
dZd	Zd
Z
dZdZd
ZdZdZdZdZdZdZdZdZddeddZRS(sXThis class contains multiple repositories and core configuration data
       about them.cCsmh|_d|_d|_t|_tid|_	t
|_t||_
t||_d|_dS(Nisyum.RepoStorage(RtreposR
RtcachetMetaSacktpkgSacktloggingt	getLoggertloggertFalset_setupRRRtgpg_import_functconfirm_func(RR((RR,s				cCs|iiid|djo|i}n|i|}t	|djo|i
idnx?|D]7}|i
|iii|iid|id|iqmWt|_|iiiddS(Ntprereposetupis#No Repositories Available to Set UpRRt
postreposetup(RRtpluginstruntthisrepoR
tlistEnabledRt	findRepostlenRtdebugRtsetuptconfRtmediagrabberRRtTrueR(RRRR((RtdoSetup>s
	cCst|iiS(N(tstrRRtkeys(R((Rt__str__QscCs|idS(N(Rtclose(R((Rt__del__TscCs(x!|iiD]}|iqWdS(N(RRtvaluesRR+(RR((RR+WscCsA|ii|iotid|in||i|i<dS(Ns;Repository %s is listed more than once in the configuration(RRthas_keytrepoobjtidtErrorstDuplicateRepoError(RR/((Rtadd[scCs<|ii|o%|i|}|i|i|=ndS(N(RRR.trepoidRR+(RR4R((Rtdeleteas

cCs|ii}|i|S(N(RRR-trepolisttsort(RR6((RR7gs
cCs;y|i|SWn%tj
o}tid|nXdS(Ns:Error getting repository data for %s, repository not found(RRR4tKeyErrorteR1t	RepoError(RR4R9((RtgetRepolscCsg}x||idD]k}|i}titi|i	}x;|iiD]*\}}||o|i|qSqSWqW|S(s0find all repositories matching fnmatch `pattern`t,N(tresulttpatterntsplittitemtstriptretcompiletfnmatcht	translatetmatchRRtitemstnameRtappend(RR>RHR@RR=RF((RR ss
cCsg}ti|p|iddjo8x^|i|D] }|i|i	|i
q<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<iN(
Rtmisctre_globR4tfindRR RRIR0tdisableR;R(RR4RRR((RtdisableRepos&
cCsg}ti|p|iddjo8x^|i|D] }|i|i	|i
q<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<iN(
RRJRKR4RLRR RRIR0tenableR;R(RR4RRR((Rt
enableRepos&
cCsLg}x5|iiD]$}|io|i|qqW|i|S(s#return list of enabled repo objectsN(t
returnlistRRR-Rt	isEnabledRIR7(RRRQ((RRs

cCs<g}x/|iD]!}|io|i|qqW|S(s6return a list of repo objects that have groups enabledN(RQRRRtenablegroupsRI(RRRQ((RtlistGroupsEnableds

cCs0||_x |iiD]}||_qWdS(ssets cache value in all reposN(tcachevalRRRR-R(RRUR((RtsetCaches
	cCs3x,|iiD]}|i|_||_qWdS(s$sets the cachedir value in all reposN(RRR-Rtbasecachedirtold_base_cache_dirtcachedir(RRYR((RtsetCacheDirs
cCs+x$|iiD]}|i|qWdS(s6sets the progress bar for downloading files from reposN(RRR-RtsetCallbacktobj(RR\R((RtsetProgressBarscCs+x$|iiD]}|i|qWdS(s'sets the failure callback for all reposN(RRR-Rt
setFailureObjR\(RR\R((RtsetFailureCallbackscCs+x$|iiD]}|i|qWdS(s)sets the failure callback for all mirrorsN(RRR-RtsetMirrorFailureObjR\(RR\R((RtsetMirrorFailureCallbackscCs+x$|iiD]}|i|qWdS(N(RRR-RtsetInterruptCallbackR(RRR((RRbscCs|iS(N(RR(R((RtgetPackageSackstenabledtmetadataic
Cs|ip|in|p
|i}ng}	|djo|i}	n|djo|ii}	nt	|t
ijoRx|D]C}t
|to|	i|q|i|}|	i|qWn7t	|t
ijo |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'
        RdtallRet	filelistst	otherdataN(RRR'RtmyrepostwhichRRR-ttypettypestListTypeRt
isinstancet
RepositoryRIR;trepobjt
StringTypetmdtypetdataRctsacktpopulatet	cacheonlyRtaddSackR0(
RRjRrRRvRpRsRtRRi((RtpopulateSacks8




	(R
RRRR
R'R*R,R+R3R5R7R;R RNRPRRTRVRZR]R_RaRbRcRx(((RR(s.									
			
									RocBstZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZeeedZededZRS(s#this is an actual repository objectcCs||_|idS(N(R4RR0RM(RR4((RRs	cCs>|i|ijodSn |i|ijodSndSdS(sf Sort base class repos. by alphanumeric on their id, also
            see __cmp__ in YumRepository(). iiiN(RR0tother(RRy((Rt__cmp__scCs|iS(N(RR0(R((RR*scCs
t|iS(N(thashRR0(R((Rt__hash__scCs|idS(N(RR+(R((RR,scCsdS(N((R((RR+"scCst|||dS(s+sets a generic attribute of this repositoryN(tsetattrRtkeytvalue(RR~R((RtsetAttribute%scCst||dS(N(tgetattrRR~R
(RR~((RtgetAttribute)scCs |id}|dj	o|S(NRd(RRRdR
(RRd((RRR,scCs|idddS(NRdi(RR(R((RRO0scCs|idddS(NRdi(RR(R((RRM3scCs|id}|pgS(Ntexclude(RRtexcludeList(RR((RtgetExcludePkgList6scCs|id}|pgS(Ntincludepkgs(RRtincludeList(RR((RtgetIncludePkgList:scCs
tdS(N(tNotImplementedError(R((Rtready?scCs
tdS(N(R(R((RtgetGroupLocationBscCs
tdS(N(R(R((RRcEscCs
tdS(N(R(RR((RR#HscCs
tdS(N(R(RR((RR[KscCs
tdS(N(R(RR\((RR^NscCs
tdS(N(R(RR\((RR`QscCs
tdS(N(R(Rtpackaget	checkfuncttextR((Rt
getPackageTstsimplecCs
tdS(N(R(RRRtregetR((Rt	getHeaderWs(R
RRRRzR*R|R,R+RRRRRORMRRRRRcR#R[R^R`R
R&RR(((RRos.		
																		(
RBRDRlRRJR1tpackageSackRRtproxyRRRo(R1RRoRRJRRBRRDRRl((Rt?s						



Anon7 - 2021