support/scripts: use show-info to extract dependency graph
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 7 May 2019 20:52:28 +0000 (22:52 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 7 May 2019 21:03:41 +0000 (23:03 +0200)
commitd901aa32d5c75b16e3ba08b20b12dc9858a68512
tree71aa81c9bcb22981a51470340d22005f487a3033
parent45cfcb53110b1193ede37fdf0b503507b0c604fe
support/scripts: use show-info to extract dependency graph

Currently, we extract the dependency graph from the aptly named but
ad-hoc show-dependency-graph rule.

We now have a better solution to report package information, with
show-info.

Since show-dependency-graph never went into a release so far, and
show-info does provide the same (and more), switch to using show-info.

Thanks to Adam for suggesting the coding style to have a readable code
that is not ugly but still pleases flake8. Thanks to Arnout for
suggesting the use of dict.get() to further simplify the code.

Note: we do not use the reverse_dependencies field because it only
contains those packages that have a kconfig option, so we'd miss most
host packages.

Reported-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com>
Cc: Adam Duskett <aduskett@gmail.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
support/scripts/brpkgutil.py