Signed-off-by: Niels Thykier <niels@thykier.net>email-direct-upload-sponsor
parent
4eb5bdb396
commit
9c563f1a96
@ -0,0 +1,42 @@
|
||||
from collections import namedtuple
|
||||
|
||||
SuiteInfo = namedtuple('SuiteInfo', [
|
||||
'name',
|
||||
'path',
|
||||
'excuses_suffix',
|
||||
])
|
||||
|
||||
|
||||
class SourcePackage(object):
|
||||
|
||||
__slots__ = ['version', 'section', 'binaries', 'maintainer', 'is_fakesrc']
|
||||
|
||||
def __init__(self, version, section, binaries, maintainer, is_fakesrc):
|
||||
self.version = version
|
||||
self.section = section
|
||||
self.binaries = binaries
|
||||
self.maintainer = maintainer
|
||||
self.is_fakesrc = is_fakesrc
|
||||
|
||||
def __getitem__(self, item):
|
||||
return getattr(self, self.__slots__[item])
|
||||
|
||||
BinaryPackageId = namedtuple('BinaryPackageId', [
|
||||
'package_name',
|
||||
'version',
|
||||
'architecture',
|
||||
])
|
||||
|
||||
BinaryPackage = namedtuple('BinaryPackage', [
|
||||
'version',
|
||||
'section',
|
||||
'source',
|
||||
'source_version',
|
||||
'architecture',
|
||||
'multi_arch',
|
||||
'depends',
|
||||
'conflicts',
|
||||
'provides',
|
||||
'is_essential',
|
||||
'pkg_id',
|
||||
])
|
Loading…
Reference in new issue