ADd TODO.
This commit is contained in:
parent
5904fa214a
commit
8ab342f21c
1 changed files with 4 additions and 5 deletions
|
@ -203,11 +203,7 @@ class PackageDependencyFixer(BuildFixer):
|
||||||
|
|
||||||
def add_dependency(context, phase, requirement: AptRequirement):
|
def add_dependency(context, phase, requirement: AptRequirement):
|
||||||
if phase[0] == "autopkgtest":
|
if phase[0] == "autopkgtest":
|
||||||
return add_test_dependency(
|
return add_test_dependency(context, phase[1], requirement)
|
||||||
context,
|
|
||||||
phase[1],
|
|
||||||
requirement,
|
|
||||||
)
|
|
||||||
elif phase[0] == "build":
|
elif phase[0] == "build":
|
||||||
return add_build_dependency(context, requirement)
|
return add_build_dependency(context, requirement)
|
||||||
else:
|
else:
|
||||||
|
@ -249,6 +245,9 @@ def add_test_dependency(context, testname, requirement):
|
||||||
|
|
||||||
tests_control_path = context.abspath("debian/tests/control")
|
tests_control_path = context.abspath("debian/tests/control")
|
||||||
|
|
||||||
|
# TODO(jelmer): If requirement is for one of our binary packages
|
||||||
|
# but "@" is already present then don't do anything.
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with Deb822Editor(path=tests_control_path) as updater:
|
with Deb822Editor(path=tests_control_path) as updater:
|
||||||
command_counter = 1
|
command_counter = 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue