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
This commit is contained in:
Luca Boccassi 2021-04-02 16:57:33 +01:00
parent 57f2cc1cd6
commit 93ab49f927
1 changed files with 4 additions and 0 deletions

View File

@ -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