|
|
|
@ -72,10 +72,10 @@ def create_excuse(name):
|
|
|
|
|
return Excuse(name)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def create_source_package(version, section='devel', binaries=None):
|
|
|
|
|
def create_source_package(name, version, section='devel', binaries=None):
|
|
|
|
|
if binaries is None:
|
|
|
|
|
binaries = set()
|
|
|
|
|
return SourcePackage(version, section, binaries, 'Random tester', False, None, None, ['autopkgtest'], [])
|
|
|
|
|
return SourcePackage(name, version, section, binaries, 'Random tester', False, None, None, ['autopkgtest'], [])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def create_bin_package(pkg_id, source_name=None, depends=None, conflicts=None):
|
|
|
|
@ -102,8 +102,8 @@ def create_bin_package(pkg_id, source_name=None, depends=None, conflicts=None):
|
|
|
|
|
|
|
|
|
|
def create_policy_objects(source_name, target_version='1.0', source_version='2.0'):
|
|
|
|
|
return (
|
|
|
|
|
create_source_package(target_version),
|
|
|
|
|
create_source_package(source_version),
|
|
|
|
|
create_source_package(source_name, target_version),
|
|
|
|
|
create_source_package(source_name, source_version),
|
|
|
|
|
create_excuse(source_name),
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
@ -135,7 +135,7 @@ def build_sources_from_universe_and_inst_tester(policy, pkg_universe, inst_teste
|
|
|
|
|
binaries_s = {}
|
|
|
|
|
for pkg_id in pkg_universe:
|
|
|
|
|
pkg_name = pkg_id.package_name
|
|
|
|
|
src_universe[pkg_id] = create_source_package(pkg_id.version, binaries={pkg_id})
|
|
|
|
|
src_universe[pkg_id] = create_source_package(pkg_id.package_name, pkg_id.version, binaries={pkg_id})
|
|
|
|
|
bin_universe[pkg_id] = create_bin_package(pkg_id)
|
|
|
|
|
if inst_tester.is_pkg_in_the_suite(pkg_id):
|
|
|
|
|
if pkg_name in suite_info.target_suite.sources:
|
|
|
|
|