[arch-commits] Commit in python-websocket-client/trunk (PKGBUILD use-system-ca.patch)

Felix Yan fyan at archlinux.org
Mon Oct 26 04:02:50 UTC 2015


    Date: Monday, October 26, 2015 @ 05:02:50
  Author: fyan
Revision: 144990

upgpkg: python-websocket-client 0.32.0-1

Modified:
  python-websocket-client/trunk/PKGBUILD
  python-websocket-client/trunk/use-system-ca.patch

---------------------+
 PKGBUILD            |    3 ++-
 use-system-ca.patch |   12 ------------
 2 files changed, 2 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-10-26 04:00:08 UTC (rev 144989)
+++ PKGBUILD	2015-10-26 04:02:50 UTC (rev 144990)
@@ -16,10 +16,11 @@
 source=(http://pypi.python.org/packages/source/w/websocket-client/websocket_client-$pkgver.tar.gz
         use-system-ca.patch)
 md5sums=('b07a897511a3c585251fe2ea85a9d9d9'
-         'c17d7f735c91ecf5a6b9ff16729400f2')
+         'c34c7f6fddbe5758d84b9d3cfdd92108')
 
 prepare() {
   (cd websocket_client-$pkgver; patch -p1 -i ../use-system-ca.patch)
+  rm websocket_client-$pkgver/websocket/cacert.pem
 
   cp -a websocket_client-$pkgver{,-py2}
 }

Modified: use-system-ca.patch
===================================================================
--- use-system-ca.patch	2015-10-26 04:00:08 UTC (rev 144989)
+++ use-system-ca.patch	2015-10-26 04:02:50 UTC (rev 144990)
@@ -8,15 +8,3 @@
      },
      tests_require=tests_require,
      test_suite="websocket.tests.test_websocket",
---- a/websocket/_http.py	2015-06-03 08:44:39.000000000 +0800
-+++ b/websocket/_http.py	2015-10-26 11:52:50.398576537 +0800
-@@ -143,8 +143,7 @@
- 
- def _ssl_socket(sock, user_sslopt, hostname):
-     sslopt = dict(cert_reqs=ssl.CERT_REQUIRED)
--    certPath = os.path.join(
--        os.path.dirname(__file__), "cacert.pem")
-+    certPath = "/etc/ssl/certs/ca-certificates.crt"
-     if os.path.isfile(certPath):
-         sslopt['ca_certs'] = certPath
-     sslopt.update(user_sslopt)



More information about the arch-commits mailing list