summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-08-15 14:23:02 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-08-15 14:23:02 +0200
commit3255fb5ec246fb1988e1072a4c0f43d17531c23a (patch)
tree23c040ce429b48a96a1368483e89b07169fe5643 /portato
parenteb211ff9f62660143adfbfdc604c4f2bbd3b6784 (diff)
downloadportato-3255fb5ec246fb1988e1072a4c0f43d17531c23a.tar.gz
portato-3255fb5ec246fb1988e1072a4c0f43d17531c23a.tar.bz2
portato-3255fb5ec246fb1988e1072a4c0f43d17531c23a.zip
Skip some data of eix.parser.package. The data is unneeded and just kill memory and runtime
Diffstat (limited to '')
-rw-r--r--portato/eix/parser.pyx22
1 files changed, 12 insertions, 10 deletions
diff --git a/portato/eix/parser.pyx b/portato/eix/parser.pyx
index be4b77e..d791bf0 100644
--- a/portato/eix/parser.pyx
+++ b/portato/eix/parser.pyx
@@ -264,11 +264,11 @@ cdef class package:
cdef LLong _offset
cdef readonly object name
- cdef readonly object description
- cdef readonly object provide
- cdef readonly object homepage
- cdef readonly object license
- cdef readonly object useflags
+ #cdef readonly object description
+ #cdef readonly object provide
+ #cdef readonly object homepage
+ #cdef readonly object license
+ #cdef readonly object useflags
def __init__ (self, file):
"""
@@ -283,11 +283,13 @@ cdef class package:
after_offset = ftell(cfile)
self.name = string(file)
- self.description = string(file)
- self.provide = vector(file, number)
- self.homepage = string(file)
- self.license = number(file)
- self.useflags = vector(file, number)
+
+ # skip the rest, as it is currently unneeded
+ #self.description = string(file)
+ #self.provide = vector(file, number)
+ #self.homepage = string(file)
+ #self.license = number(file)
+ #self.useflags = vector(file, number)
# self.versions = LE(typed_vector(version))
# for the moment just skip the versions