mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-04-18 06:31:10 +00:00
Store Testsuite: list in sources
Extend read_sources to store the components of Testsuite: as a list.
This commit is contained in:
parent
3ee64804ed
commit
07e1f9459b
12
britney.py
12
britney.py
@ -234,14 +234,17 @@ check_fields = sorted(check_field_name)
|
||||
|
||||
class SourcePackage(object):
|
||||
|
||||
__slots__ = ['version', 'section', 'binaries', 'maintainer', 'is_fakesrc']
|
||||
__slots__ = ['version', 'section', 'binaries', 'maintainer', 'is_fakesrc',
|
||||
'testsuite']
|
||||
|
||||
def __init__(self, version, section, binaries, maintainer, is_fakesrc):
|
||||
def __init__(self, version, section, binaries, maintainer, is_fakesrc,
|
||||
testsuite):
|
||||
self.version = version
|
||||
self.section = section
|
||||
self.binaries = binaries
|
||||
self.maintainer = maintainer
|
||||
self.is_fakesrc = is_fakesrc
|
||||
self.testsuite = testsuite
|
||||
|
||||
def __getitem__(self, item):
|
||||
return getattr(self, self.__slots__[item])
|
||||
@ -582,6 +585,7 @@ class Britney(object):
|
||||
[],
|
||||
None,
|
||||
True,
|
||||
[],
|
||||
)
|
||||
|
||||
self.sources['testing'][pkg_name] = src_data
|
||||
@ -656,6 +660,7 @@ class Britney(object):
|
||||
[],
|
||||
None,
|
||||
True,
|
||||
[],
|
||||
)
|
||||
self.sources['testing'][pkg_name] = src_data
|
||||
self.sources['unstable'][pkg_name] = src_data
|
||||
@ -837,6 +842,7 @@ class Britney(object):
|
||||
[],
|
||||
maint,
|
||||
False,
|
||||
get_field('Testsuite', '').split(),
|
||||
)
|
||||
return sources
|
||||
|
||||
@ -986,7 +992,7 @@ class Britney(object):
|
||||
srcdist[source].binaries.append(pkg_id)
|
||||
# if the source package doesn't exist, create a fake one
|
||||
else:
|
||||
srcdist[source] = SourcePackage(source_version, 'faux', [pkg_id], None, True)
|
||||
srcdist[source] = SourcePackage(source_version, 'faux', [pkg_id], None, True, [])
|
||||
|
||||
# add the resulting dictionary to the package list
|
||||
packages[pkg] = dpkg
|
||||
|
Loading…
x
Reference in New Issue
Block a user