Dachary has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/314500

Change subject: repository: do not verify CA for svn
......................................................................

repository: do not verify CA for svn

Disable certificate authority verification when trying svn. Otherwise it
will fallback to interactive mode and fail with a timeout.

Change-Id: I5d35384b045de81c582c317b9e0bd07cfe480bef
Signed-off-by: Loic Dachary <[email protected]>
---
M FLOSSbot/repository.py
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/bots/FLOSSbot 
refs/changes/00/314500/1

diff --git a/FLOSSbot/repository.py b/FLOSSbot/repository.py
index cde20f0..68a7f3c 100644
--- a/FLOSSbot/repository.py
+++ b/FLOSSbot/repository.py
@@ -240,7 +240,10 @@
             password = ''
         return util.sh_bool("""
         set -e
-        timeout 30 svn info {url} {user} {password}
+        failures=unknown-ca,cn-mismatch,expired,not-yet-valid,other
+        timeout 30 svn info \
+           --trust-server-cert-failures=$failures --non-interactive \
+           {url} {user} {password}
         """.format(url=url, user=user, password=password))
 
     def verify_fossil(self, url):

-- 
To view, visit https://gerrit.wikimedia.org/r/314500
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5d35384b045de81c582c317b9e0bd07cfe480bef
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/bots/FLOSSbot
Gerrit-Branch: master
Gerrit-Owner: Dachary <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to