Extend JSON output when listing installed development platforms

This commit is contained in:
Ivan Kravets committed 2016-09-03 14:59:50 +03:00
1 parent e2d2295866
commit c8849a4648
1 file changed
+5 -1
+5 -1
View File
@@ -138,7 +138,11 @@ def platform_list(json_output):
"title": p.title,
"description": p.description,
"version": p.version,
"packages": p.get_installed_packages().keys()
"url": p.manifest.get("url"),
"packages": p.get_installed_packages().keys(),
'forDesktop': any([
p.name.startswith(n) for n in ("native", "linux", "windows")
])
})
if json_output: