commit: 4589289e7689d2cd79c89df0e0da5d41e1b9a5d3
Author: Brian Harring <ferringb <AT> gmail <DOT> com>
AuthorDate: Mon Nov 24 14:25:22 2025 +0000
Commit: Brian Harring <ferringb <AT> gmail <DOT> com>
CommitDate: Mon Nov 24 15:49:35 2025 +0000
URL:
https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=4589289e
fix: FormatReporter was mutating results.
Somewhere along the way in python land, vars turned
into a view- not a copy. Thus the problem.
Signed-off-by: Brian Harring <ferringb <AT> gmail.com>
src/pkgcheck/reporters.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pkgcheck/reporters.py b/src/pkgcheck/reporters.py
index 0abb675b..50345617 100644
--- a/src/pkgcheck/reporters.py
+++ b/src/pkgcheck/reporters.py
@@ -283,7 +283,7 @@ class FormatReporter(Reporter):
while True:
result = yield
- attrs = vars(result)
+ attrs = vars(result).copy()
attrs.update((k, getattr(result, k)) for k in properties)
s = formatter.format(self.format_str, **attrs)
# output strings with at least one valid expansion or
non-whitespace character