This allows passing additional options to ssh.

Signed-off-by: Ulrich Müller <u...@gentoo.org>
---
 eclass/cvs.eclass | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass
index 1289ee54cc3b..5148daa2d57d 100644
--- a/eclass/cvs.eclass
+++ b/eclass/cvs.eclass
@@ -174,6 +174,12 @@ _CVS_ECLASS=1
 # WARNING: If a SSH host key is not specified using this variable, the
 # remote host key will not be verified.
 
+# @ECLASS_VARIABLE: ECVS_SSH_EXTRA_OPTS
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# If SSH is used for "ext" authentication, this array variable can be
+# used to pass additional options to the SSH command.
+
 # @ECLASS_VARIABLE: ECVS_CLEAN
 # @DEFAULT_UNSET
 # @DESCRIPTION:
@@ -387,6 +393,7 @@ cvs_fetch() {
                                        
-oUserKnownHostsFile="${known_hosts_file}" \\
                                        -oForwardX11=no \\
                                        -oClearAllForwardings=yes \\
+                                       ${ECVS_SSH_EXTRA_OPTS[*]} \\
                                        "\$@"
                                EOF
                        chmod a+x "${CVS_RSH}" || die
-- 
2.47.0


Reply via email to