lists: Ignore *.bz2 pkglists

They are often outdated.
This commit is contained in:
Ivan A. Melnikov 2023-07-24 17:44:38 +04:00
parent 90d99e3882
commit 4469729bc1

View File

@ -90,6 +90,9 @@ def read_pkglist_heders_for_repo(repo_path, arches, components=None):
for arch in arches:
basedir = os.path.join(repo_path, arch, 'base')
for pkglist in os.listdir(basedir):
if pkglist.endswith('.bz2'):
LOG.info('Ignoring %s/%s', basedir, pkglist)
continue
parts = pkglist.split('.', 3)
if parts[0] not in ('pkglist', 'srclist'):
continue