Skip to content

Commit

Permalink
bugs: improve assert for unkeyworded packages
Browse files Browse the repository at this point in the history
Bug: #123
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
  • Loading branch information
arthurzam committed Mar 11, 2023
1 parent 41b8134 commit 5e4b3ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pkgdev/scripts/pkgdev_bugs.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ def build_full_graph(self, targets: list[package]):
continue

keywords.update(_get_suggested_keywords(self.options.repo, pkg))
assert keywords
assert (
keywords
), f"no keywords for {pkg.versioned_atom}, currently unsupported by tool: https://github.com/pkgcore/pkgdev/issues/123"
self.nodes.add(new_node := GraphNode(((pkg, keywords),)))
vertices[pkg] = new_node
self.out.write(
Expand Down

0 comments on commit 5e4b3ec

Please sign in to comment.