From 93ab49f927a800935daf7883f0defdc707696328 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Fri, 2 Apr 2021 16:57:33 +0100 Subject: Firmware download: skip architecture if not found Contents-all.gz does not seem to exist on Buster, so don't fail if wget doesn't find the file. Closes: #986278 --- functions/firmwarelists.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'functions') diff --git a/functions/firmwarelists.sh b/functions/firmwarelists.sh index bf5c177ca..c1b7a598b 100755 --- a/functions/firmwarelists.sh +++ b/functions/firmwarelists.sh @@ -40,6 +40,10 @@ Firmware_List_From_Contents () { # If not cached, download if [ ! -e "${CONTENTS_FILE}" ] then + # Contents-all.gz does not exist in Buster and other older versions + if ! wget --quiet --spider ${WGET_OPTIONS} "${CONTENTS_URL}"; then + continue + fi wget ${WGET_OPTIONS} "${CONTENTS_URL}" -O "${CONTENTS_FILE}" fi -- cgit v1.2.3