Builder for live images based on Debian
Go to file
Lyndon Brown c53a949325 firmware: fix possible duplication in firmware package lists (inefficiency)
where multiple archive areas are used, the code here on each loop is:
  1) fetching the archive area contents file (compressed)
  2) **appending** the output to that of the previous loop
  3) searching the file for firmware references, adding to the list

since it appends rather than replaces, entries found in each loop get
re-added on each subsequent loop, resulting in duplication in the
resulting list

below I evaluate the possible solutions to explain why I chose the one
I chose, however the reader should not waste too much time worrying about
whether one of the other solution would have actually been better because
things are changed significantly in further commits shortly!

possible solutions:
  a) switching to output (>) rather than append (>>), but this might fail
     against an existing file
  b) removing the file on each loop, but this will complicate any future
     caching improvements that might be made here (currently the files are
     always deleted and thus downloaded fresh)
  c) allow the appending, evaluating the complete file after the loop

solution C warrants consideration of disk space consumption; currently the
compressed 'main' archive (for sid on amd64) expands to 592.3 MB (feb-2020),
'contrib' is 3.1 MB, and 'non-free' is 18.5 MB.

solution C was chosen here; the difference of accumulated file size vs.
max-single was minor enough to not be of particular concern (~613 vs.
~592 MB).

Gbp-Dch: Short
Closes: #952906
2020-03-05 22:13:57 +00:00
data/debian-cd We should add buster for release 2019-02-17 14:51:24 +00:00
debian Fix Lintian Warnings about changelog: day-of-week, trailing whitespace 2020-03-05 21:23:54 +00:00
examples Updating example gitignore file. 2015-04-29 08:11:39 +02:00
frontend help/usage: fix overly complex script description handling 2020-03-05 20:48:49 +00:00
functions cache: clarify and simplify package cache save/restore 2020-03-05 22:09:20 +00:00
manpages config: rename --architectures to --architecture 2020-03-05 20:39:53 +00:00
scripts firmware: fix possible duplication in firmware package lists (inefficiency) 2020-03-05 22:13:57 +00:00
share bootloaders: fix ignoring LB_DEBIAN_INSTALLER_GUI in menu creation 2020-03-05 11:48:04 +00:00
COPYING Switching to GPL3+. 2011-03-09 18:22:29 +01:00
Makefile fix capitalisation of some output messages 2020-03-05 20:36:54 +00:00