Allow passing in fixers.
This commit is contained in:
parent
697b279953
commit
62b5af617f
1 changed files with 14 additions and 6 deletions
|
@ -500,6 +500,15 @@ def apt_fixers(apt, packaging_context) -> List[BuildFixer]:
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
def default_fixers(local_tree, subpath, apt, committer=None, update_changelog=None):
|
||||||
|
packaging_context = DebianPackagingContext(
|
||||||
|
local_tree, subpath, committer, update_changelog
|
||||||
|
)
|
||||||
|
return versioned_package_fixers(apt.session, packaging_context, apt) + apt_fixers(
|
||||||
|
apt, packaging_context
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def build_incrementally(
|
def build_incrementally(
|
||||||
local_tree,
|
local_tree,
|
||||||
apt,
|
apt,
|
||||||
|
@ -513,14 +522,13 @@ def build_incrementally(
|
||||||
subpath="",
|
subpath="",
|
||||||
source_date_epoch=None,
|
source_date_epoch=None,
|
||||||
update_changelog=True,
|
update_changelog=True,
|
||||||
|
fixers=None
|
||||||
):
|
):
|
||||||
fixed_errors = []
|
fixed_errors = []
|
||||||
packaging_context = DebianPackagingContext(
|
if fixers is None:
|
||||||
local_tree, subpath, committer, update_changelog
|
fixers = default_fixers(
|
||||||
)
|
local_tree, subpath, apt, committer=committer,
|
||||||
fixers = versioned_package_fixers(apt.session, packaging_context, apt) + apt_fixers(
|
update_changelog=update_changelog)
|
||||||
apt, packaging_context
|
|
||||||
)
|
|
||||||
logging.info("Using fixers: %r", fixers)
|
logging.info("Using fixers: %r", fixers)
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Reference in a new issue