Run gbp dch when not updating changelog.
This commit is contained in:
parent
fc64cf1da1
commit
332263fd9f
2 changed files with 4 additions and 0 deletions
|
@ -222,6 +222,7 @@ def attempt_build(
|
||||||
build_changelog_entry=None,
|
build_changelog_entry=None,
|
||||||
subpath="",
|
subpath="",
|
||||||
source_date_epoch=None,
|
source_date_epoch=None,
|
||||||
|
run_gbp_dch=False
|
||||||
):
|
):
|
||||||
"""Attempt a build, with a custom distribution set.
|
"""Attempt a build, with a custom distribution set.
|
||||||
|
|
||||||
|
@ -236,6 +237,8 @@ def attempt_build(
|
||||||
source_date_epoch: Source date epoch to set
|
source_date_epoch: Source date epoch to set
|
||||||
Returns: Tuple with (changes_name, cl_version)
|
Returns: Tuple with (changes_name, cl_version)
|
||||||
"""
|
"""
|
||||||
|
if run_gbp_dch:
|
||||||
|
gbp_dch(local_tree.abspath(subpath))
|
||||||
if build_changelog_entry is not None:
|
if build_changelog_entry is not None:
|
||||||
add_dummy_changelog_entry(
|
add_dummy_changelog_entry(
|
||||||
local_tree, subpath, suffix, build_suite, build_changelog_entry
|
local_tree, subpath, suffix, build_suite, build_changelog_entry
|
||||||
|
|
|
@ -530,6 +530,7 @@ def build_incrementally(
|
||||||
build_changelog_entry,
|
build_changelog_entry,
|
||||||
subpath=subpath,
|
subpath=subpath,
|
||||||
source_date_epoch=source_date_epoch,
|
source_date_epoch=source_date_epoch,
|
||||||
|
run_gbp_dch=(update_changelog is False)
|
||||||
)
|
)
|
||||||
except SbuildFailure as e:
|
except SbuildFailure as e:
|
||||||
if e.error is None:
|
if e.error is None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue