Support passing in tie breaking functions to apt resolver.

This commit is contained in:
Jelmer Vernooij 2021-03-23 15:29:31 +00:00
parent 94e0b4f99d
commit 0b6cc8d8cc
No known key found for this signature in database
GPG key ID: 579C160D4C9E23E8
5 changed files with 154 additions and 290 deletions

View file

@ -37,6 +37,7 @@ from ..debian.fix_build import (
apt_fixers,
DebianPackagingContext,
)
from breezy.commit import NullCommitReporter
from breezy.tests import TestCaseWithTransport
@ -99,7 +100,8 @@ blah (0.1) UNRELEASED; urgency=medium
apt._searchers = [DummyAptSearcher(self._apt_files)]
context = DebianPackagingContext(
self.tree, subpath="", committer="ognibuild <ognibuild@jelmer.uk>",
update_changelog=True)
update_changelog=True,
commit_reporter=NullCommitReporter())
fixers = versioned_package_fixers(session, context) + apt_fixers(apt, context)
return resolve_error(error, ("build", ), fixers)