make cache key consistent

This commit is contained in:
Mike McLean 2020-10-08 12:13:06 -04:00 committed by Tomas Kopecek
parent 49e54eb7d2
commit 28d07c11ba

View file

@ -415,11 +415,11 @@ class RepoManager(object):
# find latest timestamp across expanded urls
max_ts = 0
for arch_url in expanded_urls:
arch_url = os.path.join(arch_url, 'repodata/repomd.xml')
if arch_url in self.external_repo_ts:
# just use the cache
max_ts = max(max_ts, self.external_repo_ts[arch_url])
continue
arch_url = os.path.join(arch_url, 'repodata/repomd.xml')
self.logger.debug('Checking external url: %s' % arch_url)
try:
r = requests.get(arch_url, timeout=5)