update edges for existing tasks for build deps

This commit is contained in:
Gregory Becker 2024-08-30 10:27:40 -07:00
parent 78e39f2207
commit 4f2f253bc3
No known key found for this signature in database
GPG Key ID: 2362541F6D14ED84

View File

@ -1754,8 +1754,14 @@ def _requeue_as_build_task(self, task):
dep_pkg = dep.package dep_pkg = dep.package
dep_id = package_id(dep) dep_id = package_id(dep)
# Add a new task if we need one
if dep_id not in self.build_tasks and dep_id not in self.installed: if dep_id not in self.build_tasks and dep_id not in self.installed:
self._add_init_task(dep_pkg, task.request, False, self.all_dependencies) self._add_init_task(dep_pkg, task.request, False, self.all_dependencies)
# Add edges for an existing task if it exists
elif dep_id in self.build_tasks:
for parent in dep.dependents():
parent_id = package_id(parent)
self.build_tasks[dep_id].add_dependent(parent_id)
# Clear any persistent failure markings _unless_ they # Clear any persistent failure markings _unless_ they
# are associated with another process in this parallel build # are associated with another process in this parallel build