commit: 98bbf58de73677d08127b73c89ddef42e6300045
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 9 16:51:58 2023 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Jun 9 16:51:58 2023 +0000
URL:
https://gitweb.gentoo.org/proj/pkgcore/pkgdev.git/commit/?id=98bbf58d
bugs: improve output texts
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
src/pkgdev/scripts/pkgdev_bugs.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/pkgdev/scripts/pkgdev_bugs.py
b/src/pkgdev/scripts/pkgdev_bugs.py
index daf4828..0a3ff91 100644
--- a/src/pkgdev/scripts/pkgdev_bugs.py
+++ b/src/pkgdev/scripts/pkgdev_bugs.py
@@ -215,7 +215,7 @@ class GraphNode:
maintainers = tuple(maintainers) or ("[email protected]",)
summary = f"{', '.join(pkg.versioned_atom.cpvstr for pkg, _ in
self.pkgs)}: stablereq"
- if len(summary) > 60:
+ if len(summary) > 90 and len(self.pkgs) > 1:
summary = f"{self.pkgs[0][0].versioned_atom.cpvstr} and friends:
stablereq"
request_data = dict(
@@ -473,7 +473,7 @@ class DependencyGraph:
f"https://bugs.gentoo.org/{node.bugno} ",
" | ".join(node.lines()),
" depends on bugs ",
- {dep.bugno for dep in node.edges},
+ {dep.bugno for dep in node.edges} or "{}",
)
self.out.flush()