Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-onionshare for
openSUSE:Factory checked in at 2021-08-24 10:54:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-onionshare (Old)
and /work/SRC/openSUSE:Factory/.python-onionshare.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-onionshare"
Tue Aug 24 10:54:56 2021 rev:8 rq:913867 version:2.3.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-onionshare/python-onionshare.changes
2021-08-23 10:09:32.996149834 +0200
+++
/work/SRC/openSUSE:Factory/.python-onionshare.new.1899/python-onionshare.changes
2021-08-24 10:55:54.708238384 +0200
@@ -1,0 +2,6 @@
+Sun Aug 22 07:38:13 UTC 2021 - Fusion Future <[email protected]>
+
+- Fix fix-compare-offset-naive-and-offset-aware-datetimes.patch to
+ use the correct timezone.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-onionshare.spec ++++++
--- /var/tmp/diff_new_pack.JDZQBu/_old 2021-08-24 10:55:55.124237833 +0200
+++ /var/tmp/diff_new_pack.JDZQBu/_new 2021-08-24 10:55:55.128237827 +0200
@@ -30,6 +30,7 @@
# PATCH-FIX-OPENSUSE skip test_large_download in gui tests
Patch0: 0001-adjust_tests.diff
# PATCH-FIX-OPENSUSE gh#onionshare/onionshare#1398
+#
https://github.com/pallets/werkzeug/commit/265bad79ee60b94f509464dcaa827cfec5833bcc
Patch1: fix-compare-offset-naive-and-offset-aware-datetimes.patch
BuildRequires: fdupes
BuildRequires: python-rpm-macros
++++++ fix-compare-offset-naive-and-offset-aware-datetimes.patch ++++++
--- /var/tmp/diff_new_pack.JDZQBu/_old 2021-08-24 10:55:55.156237790 +0200
+++ /var/tmp/diff_new_pack.JDZQBu/_new 2021-08-24 10:55:55.156237790 +0200
@@ -1,12 +1,30 @@
--- a/cli/onionshare_cli/web/share_mode.py
+++ b/cli/onionshare_cli/web/share_mode.py
-@@ -287,7 +287,7 @@ class ShareModeWeb(SendBaseModeWeb):
+@@ -25,7 +25,7 @@ import sys
+ import tempfile
+ import zipfile
+ import mimetypes
+-from datetime import datetime
++from datetime import datetime, timezone
+ from flask import Response, request, render_template, make_response, abort
+ from unidecode import unidecode
+ from werkzeug.http import parse_date, http_date
+@@ -127,7 +127,7 @@ class ShareModeWeb(SendBaseModeWeb):
+ self.download_etag = None
+ self.gzip_etag = None
+- self.last_modified = datetime.utcnow()
++ self.last_modified = datetime.now(tz=timezone.utc)
+
+ def define_routes(self):
+ """
+@@ -288,6 +288,8 @@ class ShareModeWeb(SendBaseModeWeb):
if_unmod = request.headers.get("If-Unmodified-Since")
if if_unmod:
-- if_date = parse_date(if_unmod)
-+ if_date = parse_date(if_unmod).replace(tzinfo=None)
+ if_date = parse_date(if_unmod)
++ if not if_date.tzinfo:
++ if_date = if_date.replace(tzinfo=timezone.utc) # Compatible
with Flask < 2.0.0
if if_date and if_date > last_modified:
abort(412)
elif range_header is None: