提交 f8ac661c 编写于 作者: I Ivo De Decker

Add name and arch_string to DBBinary and DBSource

上级 2d26a6ab
......@@ -402,6 +402,14 @@ class DBBinary(ORMObject):
def pkid(self):
return self.binary_id
@property
def name(self):
return self.package
@property
def arch_string(self):
return "%s" % self.architecture
def properties(self):
return ['package', 'version', 'maintainer', 'source', 'architecture',
'poolfile', 'binarytype', 'fingerprint', 'install_date',
......@@ -1599,6 +1607,14 @@ class DBSource(ORMObject):
def pkid(self):
return self.source_id
@property
def name(self):
return self.source
@property
def arch_string(self):
return 'source'
def properties(self):
return ['source', 'source_id', 'maintainer', 'changedby',
'fingerprint', 'poolfile', 'version', 'suites_count',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册