btlog: include index-v2 files

This commit is contained in:
Hans-Christoph Steiner 2022-10-20 11:33:41 +02:00
parent eb79769b37
commit cd0c049b03

View file

@ -91,7 +91,7 @@ For more info on this idea:
cpdir = os.path.join(btrepo, repodir) cpdir = os.path.join(btrepo, repodir)
if not os.path.exists(cpdir): if not os.path.exists(cpdir):
os.mkdir(cpdir) os.mkdir(cpdir)
for f in ('index.xml', 'index-v1.json'): for f in ('index.xml', 'index-v1.json', 'index-v2.json', 'entry.json'):
repof = os.path.join(repodir, f) repof = os.path.join(repodir, f)
if not os.path.exists(repof): if not os.path.exists(repof):
continue continue
@ -107,7 +107,7 @@ For more info on this idea:
with open(dest, 'w') as fp: with open(dest, 'w') as fp:
json.dump(output, fp, indent=2) json.dump(output, fp, indent=2)
gitrepo.index.add([repof]) gitrepo.index.add([repof])
for f in ('index.jar', 'index-v1.jar'): for f in ('index.jar', 'index-v1.jar', 'entry.jar'):
repof = os.path.join(repodir, f) repof = os.path.join(repodir, f)
if not os.path.exists(repof): if not os.path.exists(repof):
continue continue