firmware: delete pointlessly cached (large) file after use

the archive content file downloaded to obtain a list of firmware packages
is always deleted and downloaded afresh currently. it may not be ideal that
we do not make use of the cache here, however while that remains
unaddressed, we might as well delete the file after we've used it in order
to not pointlessly waste disk space.

note that this file is ~613 MB for sid-amd64 currently.

Gbp-Dch: Short
Closes: #952907
This commit is contained in:
Lyndon Brown 2020-02-10 18:57:18 +00:00 committed by Luca Boccassi
parent c53a949325
commit 4933beffce
2 changed files with 4 additions and 0 deletions

View File

@ -107,6 +107,8 @@ then
FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} $(awk '/^lib\/firmware/ { print $2 }' "${CONTENTS_FILE}" | sort -u)"
fi
rm -f "${CONTENTS_FILE}"
# Drop section and keep package names only
for _PACKAGE in ${FIRMWARE_PACKAGES}
do

View File

@ -395,6 +395,8 @@ then
FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} $(awk '/^lib\/firmware/ { print $2 }' "${CONTENTS_FILE}" | sort -u)"
fi
rm -f "${CONTENTS_FILE}"
# Drop section and keep package names only
for _PACKAGE in ${FIRMWARE_PACKAGES}
do