build,json: fix build failure in case no data is found
authorDaniel Golle <daniel@makrotopia.org>
Fri, 3 Jul 2020 20:57:52 +0000 (21:57 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 13 Jul 2020 20:24:30 +0000 (21:24 +0100)
commit78f57fbce61ca26a04d2fcab4887228290ee2303
treec96ce2c797b1d2859965ccc8a5c4d9b1ce2330eb
parent270711b8eddbc00dae88ad588927d8abce925b9f
build,json: fix build failure in case no data is found

Only collect arch_packages if actually generating any output.

Fixes: commit f09b9319 ("build,json: store arch_packages in profiles.json"(
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 3b0f698760ae3a62173a28f18e9e1e3adef9c492)
scripts/json_overview_image_info.py