aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-05-07 03:53:37 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-05-09 14:23:15 +0530
commitac1c929f66bde7209f1bd7e2d995dbd3949e1d8b (patch)
treef240542ca78e22c2911c9d1625df12252931fd0e
parentc650ba8928c6ded4adc7faf1bca3f28df8f47163 (diff)
downloadmeson-ac1c929f66bde7209f1bd7e2d995dbd3949e1d8b.zip
meson-ac1c929f66bde7209f1bd7e2d995dbd3949e1d8b.tar.gz
meson-ac1c929f66bde7209f1bd7e2d995dbd3949e1d8b.tar.bz2
mesonintrospect: Print all deps, not just those with the same name
This breaks the API, but the original API was just broken.
-rw-r--r--mesonbuild/mintro.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/mintro.py b/mesonbuild/mintro.py
index c12c4dd..88ea16e 100644
--- a/mesonbuild/mintro.py
+++ b/mesonbuild/mintro.py
@@ -161,12 +161,12 @@ def list_buildsystem_files(coredata, builddata):
print(json.dumps(filelist))
def list_deps(coredata):
- result = {}
- for d in coredata.deps.values():
+ result = []
+ for d in coredata.deps:
if d.found():
args = {'compile_args': d.get_compile_args(),
'link_args': d.get_link_args()}
- result[d.name] = args
+ result += [d.name, args]
print(json.dumps(result))
def list_tests(testdata):