aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-12-17 07:42:03 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2023-12-17 07:42:03 +0200
commitee5abb29ef2877d0e4e0b1f183d50578a49b1a26 (patch)
tree96179c55b5af7658445ba648174a66e2ea4beed1
parentbugs: merge stable groups as first step (diff)
downloadpkgdev-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.py1
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