~romaimperator/keryx/devel

« back to all changes in this revision

Viewing changes to libkeryx/definitions/dpkg/database.py

  • Committer: Chris Oliver
  • Date: 2009-10-01 04:40:03 UTC
  • Revision ID: excid3@gmail.com-20091001044003-qf5jpqwwg023aajm
Filtered out some of the entries acting up

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
    __tablename__ = "packages"
80
80
    
81
81
    id = Column(Integer, primary_key=True)
 
82
    name = Column(Unicode)
82
83
    version = Column(Unicode)
83
 
    name = Column(Unicode)
84
84
    section = Column(Unicode)
85
85
    installed_size = Column(Unicode)
86
86
    maintainer = Column(Unicode)
94
94
    conflicts = Column(Unicode)
95
95
    filename = Column(Unicode)
96
96
    size = Column(Unicode)
97
 
    md5sumsha256 = Column(Unicode)
 
97
    md5sum = Column(Unicode)
 
98
    sha256 = Column(Unicode)
98
99
    shortdesc = Column(Unicode)
99
100
    longdesc = Column(Unicode)
100
101
    homepage = Column(Unicode)
105
106
 
106
107
    def __init__(self, name, version, section, \
107
108
                 installed_size, maintainer, original_maintainer, \
108
 
                 architecture, replaces, provides, depends, recommends, \
109
 
                 suggests, conflicts, filename, size, md5sum, sha256, \
110
 
                 shortdesc, longdesc, homepage, bugs, origin, task):
 
109
                 architecture, replaces):#, replaces, provides, depends, recommends, \
 
110
                 #suggests, conflicts, filename, size, md5sum, sha256, \
 
111
                 #shortdesc, longdesc, homepage, bugs, origin, task):
111
112
        self.name = name
112
113
        self.version = version
113
114
        self.section = section
116
117
        self.original_maintainer = original_maintainer
117
118
        self.architecture = architecture
118
119
        self.replaces = replaces
119
 
        self.provides = provides
120
 
        self.depends = depends
121
 
        self.recommends = recommends
122
 
        self.suggests = suggests
123
 
        self.conflicts = conflicts
124
 
        self.filename = filename
125
 
        self.size = size
126
 
        self.md5sum = md5sum
127
 
        self.sha256 = sha256
128
 
        self.shortdesc = shortdesc
129
 
        self.longdesc = longdesc
130
 
        self.homepage = homepage
131
 
        self.bugs = bugs
132
 
        self.origin = origin
133
 
        self.task = task
134
 
 
 
120
        #self.provides = provides
 
121
        #self.depends = depends
 
122
        #self.recommends = recommends
 
123
        #self.suggests = suggests
 
124
        #self.conflicts = conflicts
 
125
        #self.filename = filename
 
126
        #self.size = size
 
127
        #self.md5sum = md5sum
 
128
        #self.sha256 = sha256
 
129
        #self.shortdesc = shortdesc
 
130
        #self.longdesc = longdesc
 
131
        #self.homepage = homepage
 
132
        #self.bugs = bugs
 
133
        #self.origin = origin
 
134
        #self.task = task
135
135
 
136
136
    def __repr__(self):
137
 
        return "<Package('%s', '%s', '%s')>" % \
138
 
                (self.id, self.name, self.version)
 
 
b'\\ No newline at end of file'
 
137
        return "<Package('%s','%s','%s','%s','%s','%s','%s','%s','%s')>" % \
 
138
            (self.id, self.name, self.version, self.section,
 
139
             self.installed_size, self.maintainer, self.original_maintainer,
 
140
             self.architecture, self.replaces,
 
141
            )
 
142
#    def __repr__(self):
 
143
#        return "<Package('%s','%s','%s','%s','%s','%s','%s','%s'" \
 
144
#               ",'%s','%s','%s','%s','%s','%s','%s','%s','%s','%s'" \
 
145
#               ",'%s','%s','%s','%s','%s')>" % \
 
146
#                (self.id, self.name, self.version, self.section,
 
147
#                 self.installed_size, self.maintainer, self.original_maintainer,
 
148
#                 self.architecture, self.replaces, self.provides, self.depends,
 
149
#                 self.recommends, self.suggests, self.conflicts, self.filename,
 
150
#                 self.size, self.md5sum, self.sha256, self.shortdesc, 
 
151
#                 self.longdesc, self.homepage, self.bugs, self.origin, 
 
152
#                 self.task)
 
 
b'\\ No newline at end of file'