diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-12-17 07:42:03 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-12-17 07:42:03 +0200 |
commit | ee5abb29ef2877d0e4e0b1f183d50578a49b1a26 (patch) | |
tree | 96179c55b5af7658445ba648174a66e2ea4beed1 | |
parent | bugs: merge stable groups as first step (diff) | |
download | pkgdev-ee5abb29ef2877d0e4e0b1f183d50578a49b1a26.tar.gz pkgdev-ee5abb29ef2877d0e4e0b1f183d50578a49b1a26.tar.bz2 pkgdev-ee5abb29ef2877d0e4e0b1f183d50578a49b1a26.zip |
bugs: handle merging of top level nodes
Resolves: https://github.com/pkgcore/pkgdev/issues/125
Resolves: https://github.com/pkgcore/pkgdev/issues/167
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r-- | src/pkgdev/scripts/pkgdev_bugs.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkgdev/scripts/pkgdev_bugs.py b/src/pkgdev/scripts/pkgdev_bugs.py index a5c28a9..5d3672c 100644 --- a/src/pkgdev/scripts/pkgdev_bugs.py +++ b/src/pkgdev/scripts/pkgdev_bugs.py @@ -437,6 +437,7 @@ class DependencyGraph: assert starting_node in self.nodes while cycle := self._find_cycles(tuple(self.nodes), [starting_node]): self.out.write("Found cycle: ", " -> ".join(str(n) for n in cycle)) + start_nodes.difference_update(cycle) new_node = self.merge_nodes(cycle) if starting_node not in self.nodes: starting_node = new_node |