fix clean build again, use cache if actually there

whit dropping this in 0cec05b ("build initramfs: download packages
into per-flavor dirs"), the pre-caching was made effectively useless,
and building without internet during the build-step failed.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-06-01 17:36:31 +02:00
parent 925fec6e32
commit 6dbf509bb3

View File

@ -12,6 +12,7 @@ mkdir -p "$BUILDDIR"
if [ -d pkgs ]; then if [ -d pkgs ]; then
echo "copying package cache into build-dir" echo "copying package cache into build-dir"
cp -a pkgs "$BUILDDIR/pkgs" cp -a pkgs "$BUILDDIR/pkgs"
NO_DOWNLOAD="1"
fi fi
cd "$BUILDDIR" cd "$BUILDDIR"
mkdir "$ROOT" mkdir "$ROOT"