[packages/python-selenium] - rel 5; use chromedriver from /usr/bin

arekm arekm at pld-linux.org
Wed Apr 11 10:11:59 CEST 2018


commit 6632c32f60131b3a2215e39ad79705390ce669e6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Apr 11 10:11:52 2018 +0200

    - rel 5; use chromedriver from /usr/bin

 ...-location-of-chromedriver-from-chromium-d.patch | 22 ++++++++++++++++++++++
 python-selenium.spec                               |  4 +++-
 2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/python-selenium.spec b/python-selenium.spec
index f97068d..4902f1d 100644
--- a/python-selenium.spec
+++ b/python-selenium.spec
@@ -6,13 +6,14 @@
 Summary:	Python bindings for selenium
 Name:		python-%{module}
 Version:	3.11.0
-Release:	4
+Release:	5
 License:	BSD-like
 Group:		Development/Languages/Python
 Source0:	https://pypi.debian.net/selenium/%{module}-%{version}%{_rc}.tar.gz
 # Source0-md5:	c565de302e12ffaf7e59c1e47b45bbef
 Patch0:		x-ignore-nofocus-path.patch
 Patch1:		xpi-path.patch
+Patch2:		0002-Pick-debian-location-of-chromedriver-from-chromium-d.patch
 URL:		http://pypi.python.org/pypi/selenium/
 %if %{with python2}
 BuildRequires:	python-distribute
@@ -50,6 +51,7 @@ progresses we'll add more "native" drivers.
 %setup -q -n %{module}-%{version}%{_rc}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %if %{with python2}
diff --git a/0002-Pick-debian-location-of-chromedriver-from-chromium-d.patch b/0002-Pick-debian-location-of-chromedriver-from-chromium-d.patch
new file mode 100644
index 0000000..b16eb9e
--- /dev/null
+++ b/0002-Pick-debian-location-of-chromedriver-from-chromium-d.patch
@@ -0,0 +1,22 @@
+From: Sascha Girrulat <sascha at girrulat.de>
+Date: Sat, 9 Dec 2017 18:08:09 +0100
+Subject: Pick debian location of chromedriver from chromium-driver package
+
+Closes: #854732
+---
+ selenium/webdriver/chrome/webdriver.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/selenium/webdriver/chrome/webdriver.py b/selenium/webdriver/chrome/webdriver.py
+index 0253340..4724035 100644
+--- a/selenium/webdriver/chrome/webdriver.py
++++ b/selenium/webdriver/chrome/webdriver.py
+@@ -30,7 +30,7 @@ class WebDriver(RemoteWebDriver):
+     http://chromedriver.storage.googleapis.com/index.html
+     """
+ 
+-    def __init__(self, executable_path="chromedriver", port=0,
++    def __init__(self, executable_path="/usr/bin/chromedriver", port=0,
+                  options=None, service_args=None,
+                  desired_capabilities=None, service_log_path=None,
+                  chrome_options=None):
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-selenium.git/commitdiff/6632c32f60131b3a2215e39ad79705390ce669e6



More information about the pld-cvs-commit mailing list