Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-Babel for openSUSE:Factory 
checked in at 2025-07-27 16:26:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Babel (Old)
 and      /work/SRC/openSUSE:Factory/.python-Babel.new.13279 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Babel"

Sun Jul 27 16:26:16 2025 rev:48 rq:1295860 version:2.17.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Babel/python-Babel.changes        
2025-02-04 18:10:27.942420452 +0100
+++ /work/SRC/openSUSE:Factory/.python-Babel.new.13279/python-Babel.changes     
2025-07-27 16:26:19.957909807 +0200
@@ -1,0 +2,5 @@
+Wed Jul 23 06:34:38 UTC 2025 - Bernhard Wiedemann <[email protected]>
+
+- Add reproducible.patch to normalize date in .po (boo#1047218)
+
+-------------------------------------------------------------------

New:
----
  reproducible.patch

----------(New B)----------
  New:
- Add reproducible.patch to normalize date in .po (boo#1047218)
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-Babel.spec ++++++
--- /var/tmp/diff_new_pack.btw05N/_old  2025-07-27 16:26:20.621937212 +0200
+++ /var/tmp/diff_new_pack.btw05N/_new  2025-07-27 16:26:20.625937378 +0200
@@ -32,6 +32,7 @@
 License:        BSD-3-Clause
 URL:            https://babel.pocoo.org/
 Source:         
https://files.pythonhosted.org/packages/source/b/babel/babel-%{version}.tar.gz
+Patch0:         reproducible.patch
 BuildRequires:  %{python_module freezegun >= 1.0}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest >= 6.0}
@@ -73,6 +74,7 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
+unset SOURCE_DATE_EPOCH
 %pytest
 
 %pre

++++++ reproducible.patch ++++++
diff --git a/babel/messages/catalog.py b/babel/messages/catalog.py
index f84a5bd..786d1a4 100644
--- a/babel/messages/catalog.py
+++ b/babel/messages/catalog.py
@@ -11,6 +11,8 @@ from __future__ import annotations
 
 import datetime
 import re
+import time
+import os
 from collections.abc import Iterable, Iterator
 from copy import copy
 from difflib import SequenceMatcher
@@ -385,7 +387,9 @@ class Catalog:
         self.charset = charset or 'utf-8'
 
         if creation_date is None:
-            creation_date = datetime.datetime.now(LOCALTZ)
+            creation_date = datetime.datetime.utcfromtimestamp(
+                int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))
+            )
         elif isinstance(creation_date, datetime.datetime) and not 
creation_date.tzinfo:
             creation_date = creation_date.replace(tzinfo=LOCALTZ)
         self.creation_date = creation_date

Reply via email to