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.
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']: