1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-09 00:40:11 +01:00

Start publishing indexes with index version "10"

This commit is contained in:
Daniel Martí 2014-01-03 20:49:20 +01:00
parent b3fd84e290
commit cf852012ed

View File

@ -469,6 +469,7 @@ def make_index(apps, apks, repodir, archive, categories):
doc.appendChild(root) doc.appendChild(root)
repoel = doc.createElement("repo") repoel = doc.createElement("repo")
if archive: if archive:
repoel.setAttribute("name", config['archive_name']) repoel.setAttribute("name", config['archive_name'])
if config['repo_maxage'] != 0: if config['repo_maxage'] != 0:
@ -476,6 +477,7 @@ def make_index(apps, apks, repodir, archive, categories):
repoel.setAttribute("icon", os.path.basename(config['archive_icon'])) repoel.setAttribute("icon", os.path.basename(config['archive_icon']))
repoel.setAttribute("url", config['archive_url']) repoel.setAttribute("url", config['archive_url'])
addElement('description', config['archive_description'], doc, repoel) addElement('description', config['archive_description'], doc, repoel)
else: else:
repoel.setAttribute("name", config['repo_name']) repoel.setAttribute("name", config['repo_name'])
if config['repo_maxage'] != 0: if config['repo_maxage'] != 0:
@ -483,6 +485,8 @@ def make_index(apps, apks, repodir, archive, categories):
repoel.setAttribute("icon", os.path.basename(config['repo_icon'])) repoel.setAttribute("icon", os.path.basename(config['repo_icon']))
repoel.setAttribute("url", config['repo_url']) repoel.setAttribute("url", config['repo_url'])
addElement('description', config['repo_description'], doc, repoel) addElement('description', config['repo_description'], doc, repoel)
repoel.setAttribute("version", "10")
repoel.setAttribute("timestamp", str(int(time.time()))) repoel.setAttribute("timestamp", str(int(time.time())))
if config['repo_keyalias']: if config['repo_keyalias']: