From 4933beffce1f4467bf93ef5fc6711e4d2dff901f Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Mon, 10 Feb 2020 18:57:18 +0000 Subject: 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 --- scripts/build/chroot_firmware | 2 ++ scripts/build/installer_debian-installer | 2 ++ 2 files changed, 4 insertions(+) (limited to 'scripts') diff --git a/scripts/build/chroot_firmware b/scripts/build/chroot_firmware index 1070ccbae..e644a5584 100755 --- a/scripts/build/chroot_firmware +++ b/scripts/build/chroot_firmware @@ -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 diff --git a/scripts/build/installer_debian-installer b/scripts/build/installer_debian-installer index b4802b3f9..dcfd1792b 100755 --- a/scripts/build/installer_debian-installer +++ b/scripts/build/installer_debian-installer @@ -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 -- cgit v1.2.3