aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-03-11 18:06:51 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2023-03-11 18:06:51 +0200
commit5e4b3ec570db73ab340bc2d65d01342eb0ae823a (patch)
tree46a5a2f21d347c4d016e5bfe1e70d4e13544c3ef
parentcommit: compute commit title for commit related files only (diff)
downloadpkgdev-5e4b3ec570db73ab340bc2d65d01342eb0ae823a.tar.gz
pkgdev-5e4b3ec570db73ab340bc2d65d01342eb0ae823a.tar.bz2
pkgdev-5e4b3ec570db73ab340bc2d65d01342eb0ae823a.zip
bugs: improve assert for unkeyworded packages
Bug: https://github.com/pkgcore/pkgdev/issues/123 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r--src/pkgdev/scripts/pkgdev_bugs.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pkgdev/scripts/pkgdev_bugs.py b/src/pkgdev/scripts/pkgdev_bugs.py
index 5ea32e6..814aec1 100644
--- a/src/pkgdev/scripts/pkgdev_bugs.py
+++ b/src/pkgdev/scripts/pkgdev_bugs.py
@@ -286,7 +286,9 @@ class DependencyGraph:
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(