Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-urlgrabber for
openSUSE:Factory checked in at 2021-12-21 19:39:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-urlgrabber (Old)
and /work/SRC/openSUSE:Factory/.python-urlgrabber.new.2520 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-urlgrabber"
Tue Dec 21 19:39:06 2021 rev:28 rq:941915 version:4.1.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-urlgrabber/python-urlgrabber.changes
2021-10-11 15:32:12.694902138 +0200
+++
/work/SRC/openSUSE:Factory/.python-urlgrabber.new.2520/python-urlgrabber.changes
2021-12-21 19:39:15.392367237 +0100
@@ -1,0 +2,8 @@
+Tue Dec 21 14:02:50 UTC 2021 - Pablo Su??rez Hern??ndez
<[email protected]>
+
+- Use binary mode when reopening files
+
+- Added:
+ * use-binary-mode-when-reopening-files.patch
+
+-------------------------------------------------------------------
New:
----
use-binary-mode-when-reopening-files.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-urlgrabber.spec ++++++
--- /var/tmp/diff_new_pack.9wzShR/_old 2021-12-21 19:39:15.828367502 +0100
+++ /var/tmp/diff_new_pack.9wzShR/_new 2021-12-21 19:39:15.832367505 +0100
@@ -26,6 +26,9 @@
Group: Development/Libraries/Python
URL: https://github.com/rpm-software-management/urlgrabber
Source:
https://github.com/rpm-software-management/%{modname}/releases/download/%{modname}-4-1-0/%{modname}-%{version}.tar.gz
+# PATCH-FIX_UPSTREAM
https://github.com/rpm-software-management/urlgrabber/pull/32
+Patch0: use-binary-mode-when-reopening-files.patch
+
BuildRequires: %{python_module pycurl}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
@@ -47,6 +50,7 @@
%setup -q -n urlgrabber-%{version}
# Remove with next release
sed -i "13d" urlgrabber/__init__.py # Remove wrong license header, fixes
bnc#781323
+%autopatch -p1
# Fix location of %%{_libexecdir}
sed -i 's!/usr/libexec!%{_libexecdir}!' urlgrabber/grabber.py
++++++ use-binary-mode-when-reopening-files.patch ++++++
Index: urlgrabber-4.1.0/urlgrabber/grabber.py
===================================================================
--- urlgrabber-4.1.0.orig/urlgrabber/grabber.py
+++ urlgrabber-4.1.0/urlgrabber/grabber.py
@@ -1857,7 +1857,7 @@ class PyCurlFileObject(object):
raise err
# re open it
try:
- self.fo = open(self.filename, 'r')
+ self.fo = open(self.filename, 'rb')
except IOError as e:
err = URLGrabError(16, _('error opening file from %s, IOError:
%s')
% (self.url, e))