[packages/speedtest-cli] - this patch does not help. speedtest dislikes user-agent of the speedtest-cli.

witekfl witekfl at pld-linux.org
Tue May 19 18:22:57 CEST 2015


commit 7add2a8cefd027f5dacfc041b3e6e9fb1aa78655
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Tue May 19 18:21:12 2015 +0200

    - this patch does not help. speedtest dislikes user-agent of the speedtest-cli.

 138.patch          | 24 ------------------------
 speedtest-cli.spec |  2 --
 2 files changed, 26 deletions(-)
---
diff --git a/speedtest-cli.spec b/speedtest-cli.spec
index e03b3e4..460e779 100644
--- a/speedtest-cli.spec
+++ b/speedtest-cli.spec
@@ -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
diff --git a/138.patch b/138.patch
deleted file mode 100644
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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/speedtest-cli.git/commitdiff/7add2a8cefd027f5dacfc041b3e6e9fb1aa78655



More information about the pld-cvs-commit mailing list