/usr/lib/python2.6/site-packages/yum
NameSizeModeActions
callbacks.py46660755editdlrm
callbacks.pyc52780644editdlrm
callbacks.pyo52780644editdlrm
comps.py207700755editdlrm
comps.pyc175680644editdlrm
comps.pyo175680644editdlrm
config.py372920755editdlrm
config.pyc374700644editdlrm
config.pyo374700644editdlrm
constants.py46980755editdlrm
constants.pyc35750644editdlrm
constants.pyo35750644editdlrm
depsolve.py655120755editdlrm
depsolve.pyc396440644editdlrm
depsolve.pyo395860644editdlrm
Errors.py37800755editdlrm
Errors.pyc81850644editdlrm
Errors.pyo81850644editdlrm
failover.py33720755editdlrm
failover.pyc35910644editdlrm
failover.pyo35910644editdlrm
history.py624680755editdlrm
history.pyc549850644editdlrm
history.pyo547690644editdlrm
i18n.py206830755editdlrm
i18n.pyc165160644editdlrm
i18n.pyo165160644editdlrm
logginglevels.py79860755editdlrm
logginglevels.pyc66200644editdlrm
logginglevels.pyo66200644editdlrm
mdparser.py64080755editdlrm
mdparser.pyc78180644editdlrm
mdparser.pyo78180644editdlrm
metalink.py95060755editdlrm
metalink.pyc91470644editdlrm
metalink.pyo90770644editdlrm
misc.py367160755editdlrm
misc.pyc369260644editdlrm
misc.pyo368850644editdlrm
packages.py824890755editdlrm
packages.pyc796130644editdlrm
packages.pyo795720644editdlrm
packageSack.py418790755editdlrm
packageSack.pyc433720644editdlrm
packageSack.pyo433720644editdlrm
parser.py78070755editdlrm
parser.pyc65450644editdlrm
parser.pyo65450644editdlrm
pgpmsg.py544200755editdlrm
pgpmsg.pyc395980644editdlrm
pgpmsg.pyo395980644editdlrm
pkgtag_db.py49550755editdlrm
pkgtag_db.pyc52110644editdlrm
pkgtag_db.pyo52110644editdlrm
plugins.py250830755editdlrm
plugins.pyc263840644editdlrm
plugins.pyo263840644editdlrm
repoMDObject.py100840755editdlrm
repoMDObject.pyc86170644editdlrm
repoMDObject.pyo86170644editdlrm
repos.py143020755editdlrm
repos.pyc158340644editdlrm
repos.pyo157850644editdlrm
rpmsack.py687620755editdlrm
rpmsack.pyc584470644editdlrm
rpmsack.pyo583080644editdlrm
rpmtrans.py250040755editdlrm
rpmtrans.pyc235000644editdlrm
rpmtrans.pyo234430644editdlrm
sqlitesack.py713790755editdlrm
sqlitesack.pyc557780644editdlrm
sqlitesack.pyo553500644editdlrm
sqlutils.py64220755editdlrm
sqlutils.pyc57890644editdlrm
sqlutils.pyo57890644editdlrm
transactioninfo.py320070755editdlrm
transactioninfo.pyc297180644editdlrm
transactioninfo.pyo297180644editdlrm
update_md.py247140755editdlrm
update_md.pyc212960644editdlrm
update_md.pyo212960644editdlrm
yumRepo.py759780755editdlrm
yumRepo.pyc596180644editdlrm
yumRepo.pyo596180644editdlrm
__init__.py2392050755editdlrm
__init__.pyc1565380644editdlrm
__init__.pyo1563650644editdlrm
Edit: /usr/lib/python2.6/site-packages/yum/parser.pyo (6545B)
Ñò ;}vXc@skddkZddkZddkZddkZddkZeidƒZd„Zddd„ƒYZ dS(iÿÿÿÿNs\$(\w+)cCs½|p|Sg}x›|o“ti|ƒ}|p|i|ƒPn|idƒiƒ}|i||iƒƒ}|iƒ\}}|i|| ƒ|i|ƒ||}qWdi|ƒS(sPerform variable replacement @param raw: String to perform substitution on. @param vars: Dictionary of variables to replace. Key is variable name (without $ prefix). Value is replacement string. @return: Input raw string with substituted values. it(t_KEYCREtsearchtappendtgrouptlowertgettspantjoin(trawtvarstdonetmtvarnamet replacementtstarttend((s./usr/lib/python2.6/site-packages/yum/parser.pyt varReplace s   tConfigPreProcessorcBsSeZdZd d„Zdd„Zd„Zd„Zd„Zd„Z d„Z RS( s¡ ConfigParser Include Pre-Processor File-like Object capable of pre-processing include= lines for a ConfigParser. The readline function expands lines matching include=(url) into lines from the url specified. Includes may occur in included files as well. Suggested Usage:: cfg = ConfigParser.ConfigParser() fileobj = confpp( fileorurl ) cfg.readfp(fileobj) cCs¾||_d|_d|_ti|ƒd}|djo7|ddjotiƒd|}nd|}n|}g|_g|_|i |ƒ}|djot i d|‚ndS(NtriRt/sfile://sError accessing file: %s( t_varstNonet_sectiontmodeturlparsetostgetcwdt _incstackt_alreadyincludedt _pushfiletErrorst ConfigError(tselft configfileR tschemeturltfo((s./usr/lib/python2.6/site-packages/yum/parser.pyt__init__=s       icCsd}xüt|iƒdjoå|id}|iƒ}t|ƒdjo«tid|ƒ}|o^|idƒ}t|ƒdjotid|i‚qòt ||i ƒ}|i |ƒ}qtid|ƒ}|o|idƒ|_ nPq |i ƒq Wt ||i ƒS( sÖ Implementation of File-Like Object readline function. This should be the only function called by ConfigParser according to the python docs. We maintain a stack of real FLOs and delegate readline calls to the FLO on top of the stack. When EOF occurs on the topmost FLO, it is popped off the stack and the next FLO takes over. include= lines found anywhere cause a new FLO to be opened and pushed onto the top of the stack. Finally, we return EOF when the bottom-most (configfile arg to __init__) FLO returns EOF. Very Technical Pseudo Code:: def confpp.readline() [this is called by ConfigParser] open configfile, push on stack while stack has some stuff on it line = readline from file on top of stack pop and continue if line is EOF if line starts with 'include=' then error if file is recursive or duplicate otherwise open file, push on stack continue else return line return EOF Riiÿÿÿÿs\s*include\s*=\s*(?P.*)R$s>Error parsing config %s: include must specify file to include.s\s*\[(?P
.*)\]tsection(tlenRtreadlinetretmatchRRR tnameRRRRt_popfile(R!tsizetlineR%R R$tsecmatch((s./usr/lib/python2.6/site-packages/yum/parser.pyR)]s(  cCs5t|iƒdjo|Sti|iƒ|ƒSdS(sî Returns an absolute url for the (possibly) relative url specified. The base url used to resolve the missing bits of url is the url of the file currently being included (i.e. the top of the stack). iN(R(RRturljointgeturl(R!R$((s./usr/lib/python2.6/site-packages/yum/parser.pyt_absurl›scCs»|i|ƒ}||if}|i|ƒodSytii|ƒ}Wn!tiij o}d}nX|dj o-||_|i i |ƒ|i i |ƒnt i d|‚|S(så Opens the url specified, pushes it on the stack, and returns a file like object. Returns None if the url has previously been included. If the file can not be opened this function exits. s"Error accessing file for config %sN(R3Rt_isalreadyincludedRt urlgrabbertgrabberturlopent URLGrabErrorR,RRRRR (R!R$tabsurlt includetupleR%te((s./usr/lib/python2.6/site-packages/yum/parser.pyR©s     cCsV|iiƒ}|iƒt|iƒdjo|idiƒ|_n d|_dS(sW Pop a file off the stack signaling completion of including that file. iiÿÿÿÿN(RtpoptcloseR(R2R,R(R!R%((s./usr/lib/python2.6/site-packages/yum/parser.pyR-Ês  cCs*x#|iD]}||jodSq WdS(sˆ Checks if the tuple describes an include that was already done. This does not necessarily have to be recursive ii(R(R!ttupletetuple((s./usr/lib/python2.6/site-packages/yum/parser.pyR4Ös   cCs|iS(N(R,(R!((s./usr/lib/python2.6/site-packages/yum/parser.pyR2àsN( t__name__t __module__t__doc__RR&R)R3RR-R4R2(((s./usr/lib/python2.6/site-packages/yum/parser.pyR+s >  ! (( R*RR5tos.pathRRtcompileRRR(((s./usr/lib/python2.6/site-packages/yum/parser.pyts