PR#2784: Tolerate floats in metadata timestamps
Merges #2784 https://pagure.io/koji/pull-request/2784 Fixes: #2783 https://pagure.io/koji/issue/2783 Kojira failing with non-int timestamps in repomd.xml
This commit is contained in:
commit
d8c46e85e8
1 changed files with 1 additions and 1 deletions
|
|
@ -460,7 +460,7 @@ class RepoManager(object):
|
|||
r = requests.get(arch_url, timeout=5)
|
||||
root = ElementTree.fromstring(r.text)
|
||||
ts_elements = root.iter('{http://linux.duke.edu/metadata/repo}timestamp')
|
||||
arch_ts = max([int(child.text) for child in ts_elements])
|
||||
arch_ts = max([round(float(child.text)) for child in ts_elements])
|
||||
self.external_repo_ts[arch_url] = arch_ts
|
||||
max_ts = max(max_ts, arch_ts)
|
||||
except Exception:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue