mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-07 07:50:28 +03:00
warn and ignore graphics files that have no matching app metadata
If there are graphics files that are in repo/ but there is no metadata for the associated app, then do not include the graphics in the index. Issue a warning about this.
This commit is contained in:
parent
21ba89a581
commit
696bae4d6d
1 changed files with 3 additions and 1 deletions
|
|
@ -603,7 +603,9 @@ def insert_graphics(repodir, apps):
|
|||
base, extension = common.get_extension(filename)
|
||||
|
||||
if packageName not in apps:
|
||||
apps[packageName] = metadata.App()
|
||||
logging.warning('Found "%s" graphic without metadata for app "%s"!'
|
||||
% (filename, packageName))
|
||||
continue
|
||||
if 'localized' not in apps[packageName]:
|
||||
apps[packageName]['localized'] = collections.OrderedDict()
|
||||
if locale not in apps[packageName]['localized']:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue