]> git.pld-linux.org Git - packages/speedtest-cli.git/commitdiff
- this patch does not help. speedtest dislikes user-agent of the speedtest-cli. auto/th/speedtest-cli-0.3.2-1
authorWitold Filipczyk <witekfl@poczta.onet.pl>
Tue, 19 May 2015 16:21:12 +0000 (18:21 +0200)
committerWitold Filipczyk <witekfl@poczta.onet.pl>
Tue, 19 May 2015 16:21:12 +0000 (18:21 +0200)
138.patch [deleted file]
speedtest-cli.spec

diff --git a/138.patch b/138.patch
deleted file mode 100644 (file)
index 6c068b3..0000000
--- a/138.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-diff --git a/speedtest_cli.py b/speedtest_cli.py
-index 2beeb35..82351b1 100755
---- a/speedtest_cli.py
-+++ b/speedtest_cli.py
-@@ -17,6 +17,7 @@
- import os
- import re
-+import ssl
- import sys
- import math
- import signal
-@@ -192,7 +193,10 @@ def catch_request(request):
-     """
-     try:
--        uh = urlopen(request)
-+        ctx = ssl.create_default_context()
-+        ctx.check_hostname = False
-+        ctx.verify_mode = ssl.CERT_NONE
-+        uh = urlopen(request, context = ctx)
-         return uh
-     except (HTTPError, URLError, socket.error):
-         return False
index e03b3e4b93dfc1772e5a7924edf61ac8c122acea..460e779cb82a006d3be2d0d3b04c15841e51a2d7 100644 (file)
@@ -6,7 +6,6 @@ License:        Apache
 Group:         Networking
 Source0:       http://github.com/sivel/speedtest-cli/archive/v%{version}.tar.gz
 # Source0-md5: 86f8ef30a724c5ee577d91c42e17b5fb
-Patch0:                138.patch
 URL:           http://github.com/sivel/speedtest-cli
 BuildRequires: python-distribute
 BuildRequires: rpm-pythonprov
@@ -20,7 +19,6 @@ Command line interface for testing internet bandwidth using speedtest.net.
 
 %prep
 %setup -q
-%patch0 -p1
 
 %build
 %{__python} setup.py build
This page took 0.070295 seconds and 4 git commands to generate.