commit: 6963901bebf5403be5042fcbc54f4c950608204e Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Sun Oct 22 22:50:23 2023 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Sun Oct 22 22:51:28 2023 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=6963901b
BinpkgVerifier: multiprocessing spawn compat Solves this error with the multiprocessing spawn start method: TypeError: cannot pickle 'generator' object Bug: https://bugs.gentoo.org/916141 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> lib/_emerge/BinpkgVerifier.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/_emerge/BinpkgVerifier.py b/lib/_emerge/BinpkgVerifier.py index 58691e68b6..a7917453aa 100644 --- a/lib/_emerge/BinpkgVerifier.py +++ b/lib/_emerge/BinpkgVerifier.py @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 import errno @@ -59,7 +59,7 @@ class BinpkgVerifier(CompositeTask): self._start_task( FileDigester( file_path=self._pkg_path, - hash_names=(k for k in digests if k != "size"), + hash_names=[k for k in digests if k != "size"], background=self.background, logfile=self.logfile, scheduler=self.scheduler,
