mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
index: rename app var to app_dict, its not an App instance
Throughout the code, variables named "app" are instances of the App class. In this case, this is related, but it is a dict not an App instance, since it is being prepared for including in the index-v1.json.
This commit is contained in:
parent
8bc9a3da73
commit
024d309262
2 changed files with 13 additions and 13 deletions
|
|
@ -2343,10 +2343,10 @@ def main():
|
|||
add_apks_to_per_app_repos(repodirs[0], apks)
|
||||
for appid, app in apps.items():
|
||||
repodir = os.path.join(appid, 'fdroid', 'repo')
|
||||
appdict = dict()
|
||||
appdict[appid] = app
|
||||
app_dict = dict()
|
||||
app_dict[appid] = app
|
||||
if os.path.isdir(repodir):
|
||||
index.make(appdict, apks, repodir, False)
|
||||
index.make(app_dict, apks, repodir, False)
|
||||
else:
|
||||
logging.info(_('Skipping index generation for {appid}').format(appid=appid))
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue