Skip to content

Commit

Permalink
Test if the file repomd.xml exists rather than just dir repodata
Browse files Browse the repository at this point in the history
fixes fedora-infra#908
Workaround candidate for fedora-infra#887
  • Loading branch information
k3rn3l3rr0r authored and bowlofeggs committed Dec 9, 2016
1 parent 49d7155 commit 04db206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bodhi/server/metadata.py
Expand Up @@ -74,7 +74,7 @@ def __init__(self, release, request, db, path):
# Load from the cache if it exists
self.cached_repodata = os.path.join(self.repo, '..', self.tag +
'.repocache', 'repodata/')
if os.path.isdir(self.cached_repodata):
if os.path.isfile(os.path.join(self.cached_repodata, 'repomd.xml')):
log.info('Loading cached updateinfo.xml')
self._load_cached_updateinfo()
else:
Expand Down

0 comments on commit 04db206

Please sign in to comment.