Commit 6843f218 authored by Ben Cooksley's avatar Ben Cooksley
Browse files

Workaround broken metadata in the NetworkManager-Qt Framework which broke all...

Workaround broken metadata in the NetworkManager-Qt Framework which broke all Frameworks API generation on api.kde.org.
CCMAIL: release-team@kde.org
CCMAIL: kde-frameworks-devel@kde.org
CCMAIL: jgrulich@redhat.com
CCMAIL: lamarque@kde.org
CCMAIL: ltinkl@redhat.com
CCMAIL: christoph@maxiom.de
parent c7cc4706
......@@ -107,6 +107,9 @@ def process_toplevel_html_file(outputfile, doxdatadir, tiers, title,
logging.warning('{} framework lacks platform definitions'.format(fw['fancyname']))
fw['platforms'] = [dict(name=PLATFORM_UNKNOWN)]
# In case the metadata is bad, we don't want to die so clean it up first
fw['platforms'] = [x for x in fw['platforms'] if 'name' in x]
platform_lst = [x['name'] for x in fw['platforms'] if x['name'] not in (PLATFORM_ALL, PLATFORM_UNKNOWN)]
available_platforms.update(set(platform_lst))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment