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>
Sun, 21 Mar 2021 09:58:52 +0000 (23:58 -1000)
commit7f4c2b1a4f9216218dced64794318f2197565c85
treec4f9e851539a3821b1fe4679d8796e343da66c1f
parent2ba0ab1930bd0f28404835b4393a6c99bcd0196c
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>
scripts/json_overview_image_info.py