commit: cbed0f8b7de74c8109798aa78053ad717b7ad4c6
Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 28 08:14:10 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Nov 1 09:48:56 2025 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=cbed0f8b
bintree: fix TypeError
Fix the syntax around the writemsg() to avoid a TypeError:
File "/usr/lib/python3.13/site-packages/portage/dbapi/bintree.py", line 1615,
in _populate_remote
writemsg(
~~~~~~~~^
_(
^^
...<4 lines>...
noiselevel=-1,
^^^^^^^^^^^^^^
)
^
TypeError: writemsg() got multiple values for argument 'noiselevel'
Reported in https://bugs.gentoo.org/965098#c2
Closes: https://bugs.gentoo.org/965098
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
Part-of: https://github.com/gentoo/portage/pull/1490
Closes: https://github.com/gentoo/portage/pull/1490
Signed-off-by: Sam James <sam <AT> gentoo.org>
lib/portage/dbapi/bintree.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/portage/dbapi/bintree.py b/lib/portage/dbapi/bintree.py
index 55c1298705..43611bf0e6 100644
--- a/lib/portage/dbapi/bintree.py
+++ b/lib/portage/dbapi/bintree.py
@@ -1638,8 +1638,8 @@ class binarytree:
_(
"\n\n!!! [%s] Binhost package index "
" has no TIMESTAMP field.\n"
- ),
- binrepo_name,
+ )
+ % binrepo_name,
noiselevel=-1,
)
else: