mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-15 04:21:30 +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):
|
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.version = version
|
||||||
self.section = section
|
self.section = section
|
||||||
self.binaries = binaries
|
self.binaries = binaries
|
||||||
self.maintainer = maintainer
|
self.maintainer = maintainer
|
||||||
self.is_fakesrc = is_fakesrc
|
self.is_fakesrc = is_fakesrc
|
||||||
|
self.testsuite = testsuite
|
||||||
|
|
||||||
def __getitem__(self, item):
|
def __getitem__(self, item):
|
||||||
return getattr(self, self.__slots__[item])
|
return getattr(self, self.__slots__[item])
|
||||||
@ -582,6 +585,7 @@ class Britney(object):
|
|||||||
[],
|
[],
|
||||||
None,
|
None,
|
||||||
True,
|
True,
|
||||||
|
[],
|
||||||
)
|
)
|
||||||
|
|
||||||
self.sources['testing'][pkg_name] = src_data
|
self.sources['testing'][pkg_name] = src_data
|
||||||
@ -656,6 +660,7 @@ class Britney(object):
|
|||||||
[],
|
[],
|
||||||
None,
|
None,
|
||||||
True,
|
True,
|
||||||
|
[],
|
||||||
)
|
)
|
||||||
self.sources['testing'][pkg_name] = src_data
|
self.sources['testing'][pkg_name] = src_data
|
||||||
self.sources['unstable'][pkg_name] = src_data
|
self.sources['unstable'][pkg_name] = src_data
|
||||||
@ -837,6 +842,7 @@ class Britney(object):
|
|||||||
[],
|
[],
|
||||||
maint,
|
maint,
|
||||||
False,
|
False,
|
||||||
|
get_field('Testsuite', '').split(),
|
||||||
)
|
)
|
||||||
return sources
|
return sources
|
||||||
|
|
||||||
@ -986,7 +992,7 @@ class Britney(object):
|
|||||||
srcdist[source].binaries.append(pkg_id)
|
srcdist[source].binaries.append(pkg_id)
|
||||||
# if the source package doesn't exist, create a fake one
|
# if the source package doesn't exist, create a fake one
|
||||||
else:
|
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
|
# add the resulting dictionary to the package list
|
||||||
packages[pkg] = dpkg
|
packages[pkg] = dpkg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user