mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
btlog: include index-v2 files
This commit is contained in:
parent
eb79769b37
commit
cd0c049b03
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue