Packages-gen: write compressed Packages indices again
This is a regression introduced while trying to catch up with apt's expectations, in 2183089968c04c4765d2119d176e021431b26353: iterating over Packages files is done by running the “zcat” utility on Packages.gz and Packages.xz; replacing Packages.gz with an uncompressed Packages broke iterating over Packages files referencing udebs.
This commit is contained in:
parent
bfebeded70
commit
c24949141b
|
@ -33,7 +33,10 @@ else
|
||||||
fi
|
fi
|
||||||
[ -d $repo ] || mkdir -p $repo
|
[ -d $repo ] || mkdir -p $repo
|
||||||
echo Creating Packages file for $repo...
|
echo Creating Packages file for $repo...
|
||||||
apt-ftparchive packages $repo > $repo/Packages
|
# Important: generate both uncompressed Packages (see below) and compressed
|
||||||
|
# Packages.gz (so that the usual Packages.gz/Packages.xz search finds it)!
|
||||||
|
apt-ftparchive packages $repo | pigz -9nm > $repo/Packages.gz
|
||||||
|
zcat $repo/Packages.gz > $repo/Packages
|
||||||
|
|
||||||
# Fun fact, at least when building bookworm images on bullseye:
|
# Fun fact, at least when building bookworm images on bullseye:
|
||||||
# - a missing Release file is fine, but maybe downloads follow;
|
# - a missing Release file is fine, but maybe downloads follow;
|
||||||
|
|
Loading…
Reference in New Issue