From eea8fba7e574e41fc769597ba5c897d3f752a57b Mon Sep 17 00:00:00 2001 From: "Jamie C. Driver" Date: Tue, 10 Oct 2023 19:43:09 +0100 Subject: [PATCH] tools: fix update script for firmwares which predate 'BOARD_TYPE' datum --- update_jade_fw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update_jade_fw.py b/update_jade_fw.py index e6b32129..a87b14f8 100755 --- a/update_jade_fw.py +++ b/update_jade_fw.py @@ -73,10 +73,10 @@ def _delta_appropriate(fw): # Download compressed firmware file from Firmware Server using 'requests' def download_file(verinfo, release): # Workout hw_target subdir - hw_target = {'JADE': 'jade', 'JADE_V1.1': 'jade1.1'}.get(verinfo['BOARD_TYPE']) + hw_target = {'JADE': 'jade', 'JADE_V1.1': 'jade1.1'}.get(verinfo.get('BOARD_TYPE', 'jade')) build_type = {'SB': '', 'DEV': 'dev'}.get(verinfo['JADE_FEATURES']) if hw_target is None or build_type is None: - logger.error(f'Unsupported hardware: {verinfo["BOARD_TYPE"]} / {verinfo["JADE_FEATURES"]}') + logger.error(f'Unsupported hardware: {verinfo.get("BOARD_TYPE")} / {verinfo.get("JADE_FEATURES")}') return None, None, None, None hw_target += build_type