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>
Fri, 3 Jul 2020 21:09:24 +0000 (22:09 +0100)
commit3b0f698760ae3a62173a28f18e9e1e3adef9c492
treece4c20b76e7c1a1516325ed75189369c37a1f2eb
parenta175bc8f36a43a562e1d1c38f5ff02f4f338dd4d
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>
scripts/json_overview_image_info.py