live-build/functions
Lyndon Brown 7867641fd0 firmware: save the compressed contents file to disk instead of decompressed
the existing logic was to decompress the contents file from the downloaded
archive to disk, then process it to obtain a package list. the largest
one by far is for 'main'; 'non-free' and 'contrib' are tiny in comparison.
for sid-amd64 currently, the archive file is 37 MB, while the decompressed
file it contains is 592.3 MB.

we always delete the files and download afresh (currently), and a previous
commit optimised by deleting the files once we're done with them to avoid
wasting disk space leaving them behind.

here we switch to storing the downloaded compressed file to disk instead,
reducing disk space usage (and IO) by hundreds of megabytes; piping the
decompression directly into awk instead of having awk read from the stored
file.

this moves the appending of new items into the list back within the archive
area loop, which is fine since we're replacing the file for each loop now
so the previous issue relating to appending is of no concern.

Gbp-Dch: Short
Closes: #952910
2020-03-05 22:13:57 +00:00
..
aliases.sh aliases: simplify excessively complex In_list function 2020-03-05 22:07:50 +00:00
architectures.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
arguments.sh don't unnecessarily convert exit codes to strings 2020-03-05 11:33:12 +00:00
bootloaders.sh Fix permission on functions/bootloaders.sh 2016-11-28 23:15:38 +01:00
breakpoints.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
cache.sh cache: clarify and simplify package cache save/restore 2020-03-05 22:09:20 +00:00
chroot_bind_path.sh Making functions/chroot_bind_path.sh executable within the source tree (Closes: #777096). 2015-02-07 06:46:45 +01:00
chroot.sh don't unnecessarily convert exit codes to strings 2020-03-05 11:33:12 +00:00
color.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
common.sh help/usage: fix incorrect program command 2020-03-05 20:37:57 +00:00
conffile.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
configuration.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
defaults.sh defaults: fix pointlessly split line error 2020-03-05 11:41:53 +00:00
echo.sh echo: tidy 2020-03-05 21:04:23 +00:00
exit.sh cache: clarify and simplify package cache save/restore 2020-03-05 22:09:20 +00:00
firmwarelists.sh firmware: save the compressed contents file to disk instead of decompressed 2020-03-05 22:13:57 +00:00
help.sh help/usage: fix overly complex script description handling 2020-03-05 20:48:49 +00:00
lockfile.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
losetup.sh Pass --partscan to losetup 2017-09-01 10:07:00 +02:00
man.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
packagelists.sh fix missing use of echo helpers 2020-03-05 21:04:22 +00:00
packages.sh Print an error and exit if a host package (dependency) is missing. 2018-04-05 16:24:36 +01:00
sourcelist.sh archives: deduplicate apt sourcelist file construction 2020-03-05 21:08:53 +00:00
stagefile.sh fix capitalisation of some output messages 2020-03-05 20:36:54 +00:00
usage.sh help/usage: fix overly complex script description handling 2020-03-05 20:48:49 +00:00
wrapper.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00