commit:     e42cc6a658210f1ea7d5e0d576350a344ab00c0c
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Fri Jan  9 18:07:44 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jan 10 01:14:47 2026 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=e42cc6a6

gpkg: simplify condition

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
Part-of: https://github.com/gentoo/portage/pull/1542
Closes: https://github.com/gentoo/portage/pull/1542
Signed-off-by: Sam James <sam <AT> gentoo.org>

 lib/portage/gpkg.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/portage/gpkg.py b/lib/portage/gpkg.py
index 4984455305..4a3cbffb45 100644
--- a/lib/portage/gpkg.py
+++ b/lib/portage/gpkg.py
@@ -580,7 +580,7 @@ class checksum_helper:
 
         # Don't show any summary if it's ambiguous, in case of
         # a malformed signature.
-        if errors > 1 or not errors:
+        if errors != 1:
             error_summaries = ["(none available)"]
 
         out = portage.output.EOutput()

Reply via email to