commit:     e1f8478c666de6c2310381457e846b4fe8fa8b39
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon May  1 06:49:30 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon May  1 07:20:57 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=e1f8478c

sync: webrsync: export PORTAGE_GPG_KEY_SERVER

Set PORTAGE_GPG_KEY_SERVER to sync-openpgp-keyserver configured by the user
for use by emerge-webrsync to pass to gemato.

Similar to previous commit for PORTAGE_GPG_KEY.

Bug: https://bugs.gentoo.org/905358
Signed-off-by: Sam James <sam <AT> gentoo.org>

 lib/portage/sync/modules/webrsync/webrsync.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/portage/sync/modules/webrsync/webrsync.py 
b/lib/portage/sync/modules/webrsync/webrsync.py
index 8de7c08ad..093efe8b0 100644
--- a/lib/portage/sync/modules/webrsync/webrsync.py
+++ b/lib/portage/sync/modules/webrsync/webrsync.py
@@ -112,6 +112,9 @@ class WebRsync(SyncBase):
                     self.spawn_kwargs["env"][
                         "PORTAGE_GPG_KEY"
                     ] = self.repo.sync_openpgp_key_path
+                    self.spawn_kwargs["env"][
+                        "PORTAGE_GPG_KEY_SERVER"
+                    ] = self.repo.sync_openpgp_key_server
                 except (GematoException, asyncio.TimeoutError) as e:
                     writemsg_level(
                         f"!!! Verification impossible due to keyring 
problem:\n{e}\n",

Reply via email to