mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-12 23:17:03 +00:00
Add a new "BuildDependsPolicy" that will check the satisfiability of the build-dependencies listed in the Build-Depends and Build-Depends-Arch fields. This enables gating of packages based on missing / broken build-dependencies. There are some limitations: * Build-Depends-Indep is ignored for now. Missing or broken packages listed in Build-Depends-Indep will be continue to be silently ignored. * Being a policy check, it does not enforce "self-containedness" as a package can still migrate before a build-dependency. However, this can only happen if the build-dependency is ready to migrate itself. If the build-dependency is not ready (e.g. new RC bugs), then packages build-depending on it cannot migrate either (unless the version in testing satisfies there requirements). Signed-off-by: Niels Thykier <niels@thykier.net>
44 lines
993 B
Python
44 lines
993 B
Python
from collections import namedtuple
|
|
|
|
SuiteInfo = namedtuple('SuiteInfo', [
|
|
'name',
|
|
'path',
|
|
'excuses_suffix',
|
|
])
|
|
|
|
|
|
class SourcePackage(object):
|
|
|
|
__slots__ = ['version', 'section', 'binaries', 'maintainer', 'is_fakesrc', 'build_deps_arch']
|
|
|
|
def __init__(self, version, section, binaries, maintainer, is_fakesrc, build_deps_arch):
|
|
self.version = version
|
|
self.section = section
|
|
self.binaries = binaries
|
|
self.maintainer = maintainer
|
|
self.is_fakesrc = is_fakesrc
|
|
self.build_deps_arch = build_deps_arch
|
|
|
|
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',
|
|
])
|