From ae0aa64a2dc76734b5ea553a60376765117f7fd0 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Oct 11 2020 21:15:19 +0000 Subject: spectool: add workaround for RHBZ#1881917 --- diff --git a/rpmdev-spectool b/rpmdev-spectool index d0ccfe3..158a3f1 100755 --- a/rpmdev-spectool +++ b/rpmdev-spectool @@ -23,6 +23,7 @@ import argparse import os import tempfile +import time from collections import OrderedDict from urllib.parse import urlparse @@ -206,6 +207,10 @@ class Spec: self.path = path self.spec = rpm.spec(self.path) + # workaround for RHBZ#1881917 to fix odd download ETAs: + # RPM does not properly restore the timezone after parsing a changelog date + time.tzset() + self.files = list(self.spec.sources) self.files.sort(key=(lambda file: file[1]))