[kapidox] src: Workaround broken metadata in the NetworkManager-Qt Framework which broke all Frameworks API generation on api.kde.org.

Ben Cooksley bcooksley at kde.org
Mon Dec 29 10:10:53 UTC 2014


Git commit 6843f218411db3dba8d5fb53a578564dcb67d50e by Ben Cooksley.
Committed on 29/12/2014 at 10:10.
Pushed by bcooksley into branch 'master'.

Workaround broken metadata in the NetworkManager-Qt Framework which broke all Frameworks API generation on api.kde.org.
CCMAIL: release-team at kde.org
CCMAIL: kde-frameworks-devel at kde.org
CCMAIL: jgrulich at redhat.com
CCMAIL: lamarque at kde.org
CCMAIL: ltinkl at redhat.com
CCMAIL: christoph at maxiom.de

M  +3    -0    src/kgenframeworksapidox

http://commits.kde.org/kapidox/6843f218411db3dba8d5fb53a578564dcb67d50e

diff --git a/src/kgenframeworksapidox b/src/kgenframeworksapidox
index 4b2d36f..7a0e237 100755
--- a/src/kgenframeworksapidox
+++ b/src/kgenframeworksapidox
@@ -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))
 


More information about the release-team mailing list