diff --git a/python/spacewalk/server/importlib/headerSource.py b/python/spacewalk/server/importlib/headerSource.py index f6db001a723..5342ae4dc98 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 00000000000..4cc728bb7fa --- /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)