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-t...@kde.org
CCMAIL: kde-frameworks-devel@kde.org
CCMAIL: jgrul...@redhat.com
CCMAIL: lamar...@kde.org
CCMAIL: lti...@redhat.com
CCMAIL: christ...@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))
 
_______________________________________________
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel

Reply via email to