build,json: fix duplicates in default_packages
authorPaul Spooren <mail@aparcar.org>
Sun, 21 Mar 2021 09:23:34 +0000 (23:23 -1000)
committerPaul Spooren <mail@aparcar.org>
Tue, 23 Mar 2021 22:47:18 +0000 (12:47 -1000)
commitfdc0342704b692c46ccb65c6372a853ff89094c4
tree3786fa736753fb8ecf9efb50d3ab5672d71d17f3
parent5a11ca3cf33c421949985a7ff176dac17cf07bd8
build,json: fix duplicates in default_packages

Calling without the DUMP=1 argument causes the target specific Makefile
to be "included" again which adds the target specific packages twice,
once on the actual run and once included from `include/target.mk`.

This led to duplicate package entries, causing confusion in downstream
projects using the generated JSON files.

While at it, apply `black` style to Python script.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 7f4c2b1a4f9216218dced64794318f2197565c85)
scripts/json_overview_image_info.py