Fixed: select the package name for firmware packages

When the firmware package contains file names with spaces (e.g.
firmware-brcm80211, 20240610-1), pick the correct column for the package
section
This commit is contained in:
Roland Clobus 2024-07-17 20:31:48 +02:00
parent f2e750e6f7
commit 22c48e92be
No known key found for this signature in database
GPG Key ID: 62C57C6AA61495BD
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ Firmware_List_From_Contents () {
fi
local PACKAGES
PACKAGES="$(gunzip -c "${CONTENTS_FILE}" | awk '/^(usr\/)?lib\/firmware/ { print $2 }' | sort -u )"
PACKAGES="$(gunzip -c "${CONTENTS_FILE}" | awk '/^(usr\/)?lib\/firmware/ { print $NF }' | sort -u )"
FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} ${PACKAGES}"
# Don't waste disk space, if not making use of caching