From e7962bb2b555d3afdca0ff168982cc45235ca0a8 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sun, 23 Jan 2022 11:15:18 +0100 Subject: [PATCH] Bugfix - cleaning package list Prevent problems with "File has unexpected size" when we hit repo synch between builds --- lib/distributions.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/distributions.sh b/lib/distributions.sh index 785f266d7..87a7965e7 100644 --- a/lib/distributions.sh +++ b/lib/distributions.sh @@ -246,6 +246,9 @@ install_common() export APT_EXTRA_DIST_PARAMS="" [[ $NO_APT_CACHER != yes ]] && APT_EXTRA_DIST_PARAMS="-o Acquire::http::Proxy=\"http://${APT_PROXY_ADDR:-localhost:3142}\" -o Acquire::http::Proxy::localhost=\"DIRECT\"" + display_alert "Cleaning" "package lists" + chroot "${SDCARD}" /bin/bash -c "apt-get clean" + display_alert "Updating" "package lists" chroot "${SDCARD}" /bin/bash -c "apt-get ${APT_EXTRA_DIST_PARAMS} update" >> "${DEST}"/${LOG_SUBPATH}/install.log 2>&1