[Python-apps-commits] r13474 - in packages/mercurial/trunk/debian/patches (1 file)

vicho at users.alioth.debian.org vicho at users.alioth.debian.org
Sun Aug 7 10:10:12 UTC 2016


    Date: Sunday, August 7, 2016 @ 10:10:11
  Author: vicho
Revision: 13474

Suggest installing the ca-certificates package if we couldn't find the web.cacerts

Modified:
  packages/mercurial/trunk/debian/patches/deb_specific__optional-dependencies

Modified: packages/mercurial/trunk/debian/patches/deb_specific__optional-dependencies
===================================================================
--- packages/mercurial/trunk/debian/patches/deb_specific__optional-dependencies	2016-08-07 09:52:37 UTC (rev 13473)
+++ packages/mercurial/trunk/debian/patches/deb_specific__optional-dependencies	2016-08-07 10:10:11 UTC (rev 13474)
@@ -155,3 +155,16 @@
  
          certfile = ui.config('web', 'certificate')
  
+--- a/mercurial/sslutil.py
++++ b/mercurial/sslutil.py
+@@ -260,7 +260,9 @@ def _hostsettings(ui, hostname):
+                 cafile = util.expandpath(cafile)
+                 if not os.path.exists(cafile):
+                     raise error.Abort(_('could not find web.cacerts: %s') %
+-                                      cafile)
++                                      cafile +
++                                      _(' (try installing the %s package)') %
++                                        'ca-certificates')
+             elif s['allowloaddefaultcerts']:
+                 # CAs not defined in config. Try to find system bundles.
+                 cafile = _defaultcacerts(ui)




More information about the Python-apps-commits mailing list