Run gbp dch when not updating changelog.

This commit is contained in:
Jelmer Vernooij 2021-03-29 01:06:01 +01:00
parent fc64cf1da1
commit 332263fd9f
2 changed files with 4 additions and 0 deletions

View file

@ -222,6 +222,7 @@ def attempt_build(
build_changelog_entry=None,
subpath="",
source_date_epoch=None,
run_gbp_dch=False
):
"""Attempt a build, with a custom distribution set.
@ -236,6 +237,8 @@ def attempt_build(
source_date_epoch: Source date epoch to set
Returns: Tuple with (changes_name, cl_version)
"""
if run_gbp_dch:
gbp_dch(local_tree.abspath(subpath))
if build_changelog_entry is not None:
add_dummy_changelog_entry(
local_tree, subpath, suffix, build_suite, build_changelog_entry

View file

@ -530,6 +530,7 @@ def build_incrementally(
build_changelog_entry,
subpath=subpath,
source_date_epoch=source_date_epoch,
run_gbp_dch=(update_changelog is False)
)
except SbuildFailure as e:
if e.error is None: