commit:     2660f630e18ea5893c3463972516b174c2e8443c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jun  6 10:18:44 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jun  6 10:30:55 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=2660f630

sync: webrsync: fix passing down PORTAGE_SYNC_WEBRSYNC_GPG

This needs to be a string, not an int, because an int doesn't
mean anything when we're passing it as an argument to an external
process by shelling out.

Bug: https://bugs.gentoo.org/907816
Signed-off-by: Sam James <sam <AT> gentoo.org>
Closes: https://github.com/gentoo/portage/pull/1050

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

diff --git a/lib/portage/sync/modules/webrsync/webrsync.py 
b/lib/portage/sync/modules/webrsync/webrsync.py
index 0e1d1a463..ca0416fa4 100644
--- a/lib/portage/sync/modules/webrsync/webrsync.py
+++ b/lib/portage/sync/modules/webrsync/webrsync.py
@@ -97,7 +97,7 @@ class WebRsync(SyncBase):
                     )
                     return (1, False)
 
-                self.spawn_kwargs["env"]["PORTAGE_SYNC_WEBRSYNC_GPG"] = True
+                self.spawn_kwargs["env"]["PORTAGE_SYNC_WEBRSYNC_GPG"] = "1"
                 self.spawn_kwargs["env"][
                     "PORTAGE_GPG_KEY"
                 ] = self.repo.sync_openpgp_key_path

Reply via email to