Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 210154 Details for
Bug 293096
app-portage/gentoolkit-0.3.0_rc8 - Investigate if it is possible to speed up equery meta
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Proposed patch
epkginfo-expat.patch (text/plain), 1.07 KB, created by
Dror Levin (RETIRED)
on 2009-11-13 18:31:44 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Dror Levin (RETIRED)
Created:
2009-11-13 18:31:44 UTC
Size:
1.07 KB
patch
obsolete
>--- epkginfo-orig 2009-11-13 20:23:28.923642643 +0200 >+++ epkginfo 2009-11-13 20:14:28.306623656 +0200 >@@ -13,8 +13,7 @@ > import sys > import re > from stat import * >-from xml.sax import saxutils, make_parser, handler >-from xml.sax.handler import feature_namespaces >+from xml.parsers import expat > > import portage > from portage.output import * >@@ -103,7 +102,7 @@ > print green(arch), > > >-class Metadata_XML(handler.ContentHandler): >+class Metadata_XML(object): > _inside_herd="No" > _inside_maintainer="No" > _inside_email="No" >@@ -151,11 +150,14 @@ > print darkgreen("Maintainer: ") + red("Error (Missing metadata.xml)") > return 1 > >- parser = make_parser() >+ parser = expat.ParserCreate() > handler = Metadata_XML() > handler._maintainers = [] >- parser.setContentHandler(handler) >- parser.parse( metadata_file ) >+ parser.StartElementHandler = handler.startElement >+ parser.EndElementHandler = handler.endElement >+ parser.CharacterDataHandler = handler.characters >+ with open(metadata_file, 'r') as f: >+ parser.ParseFile(f) > > if handler._herd: > herds = ", ".join(handler._herd)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 293096
: 210154