From 35c8d5e12d9c1b1f9a7a4775f2e2e849245c8548 Mon Sep 17 00:00:00 2001 From: Pascal Arlt Date: Mon, 27 Jan 2025 17:12:50 +0100 Subject: [PATCH] Fix wrong timestamp when importing packages with rhnpush (bsc#1235970) Signed-off-by: Pascal Arlt --- python/spacewalk/server/importlib/headerSource.py | 2 -- .../spacewalk-backend.changes.parlt.fix-rhnpush-last-modified | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 python/spacewalk/spacewalk-backend.changes.parlt.fix-rhnpush-last-modified diff --git a/python/spacewalk/server/importlib/headerSource.py b/python/spacewalk/server/importlib/headerSource.py index f6db001a7232..5342ae4dc980 100644 --- a/python/spacewalk/server/importlib/headerSource.py +++ b/python/spacewalk/server/importlib/headerSource.py @@ -17,7 +17,6 @@ # Converts headers to the intermediate format # -import time from .importLib import ( File, Dependency, @@ -94,7 +93,6 @@ def populate( self["org_id"] = org_id self["header_start"] = header_start self["header_end"] = header_end - self["last_modified"] = localtime(time.time()) if "sigmd5" in self: if self["sigmd5"]: self["sigchecksum_type"] = "md5" diff --git a/python/spacewalk/spacewalk-backend.changes.parlt.fix-rhnpush-last-modified b/python/spacewalk/spacewalk-backend.changes.parlt.fix-rhnpush-last-modified new file mode 100644 index 000000000000..4cc728bb7faa --- /dev/null +++ b/python/spacewalk/spacewalk-backend.changes.parlt.fix-rhnpush-last-modified @@ -0,0 +1,2 @@ +- Fix wrong timestamp when importing packages + with rhnpush (bsc#1235970)