diff options
author | Paul Spooren <mail@aparcar.org> | 2020-04-08 10:17:01 -1000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2020-04-14 23:16:55 +0100 |
commit | 14cbd8fb2dd8c81bad06d3c3bb45213685c19c98 (patch) | |
tree | 8e6ecc0c1c045c401ea0125a2262bbeafa7e7172 /scripts/md5sum | |
parent | 0bea89a1d0f98af102cef32d6a8302bc28606180 (diff) | |
download | upstream-14cbd8fb2dd8c81bad06d3c3bb45213685c19c98.tar.gz upstream-14cbd8fb2dd8c81bad06d3c3bb45213685c19c98.tar.bz2 upstream-14cbd8fb2dd8c81bad06d3c3bb45213685c19c98.zip |
scripts: JSON merge don't crash if no JSON found
The JSON `WORK_DIR` ($(KDIR)/json_info_files) is only created if the new
image generation methods from `image.mk` are used. However some targets
like `armvirt` do not use it yet, so the folder is never created.
The `json_overview_image_info.py` script used to raise an error if the
given `WORK_DIR` isn't a folder, however it should just notify about
missing JSON files.
This patch removes the Python assert and exists with code 0 even if no
JSON files were found, as this is not necessarily an error but simply
not yet implemented. Using `glob` on an not existing `Path` results in
an empty list, therefore the for loop won't run.
Signed-off-by: Paul Spooren <mail@aparcar.org>
CC: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'scripts/md5sum')
0 files changed, 0 insertions, 0 deletions