#68 spectool: add workaround for RHBZ#1881917
Merged 3 years ago by ngompa. Opened 3 years ago by decathorpe.
Unknown source master  into  master

file modified
+5
@@ -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 @@

          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]))

  

Pull-Request has been merged by ngompa

3 years ago
Metadata