snapshot_cache was removed from catalyst Apr 2020

* catalyst commit 6493f3bc534f97468c514a12035b10e3107c4ecf
* --preclean would now fail as catalyst.conf is invalid

Signed-off-by: Nic Boet <nic@boet.cc>
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
Nic Boet 2023-03-02 19:28:48 +01:00 committed by Andreas K. Hüttel
parent bdebb3c30e
commit 249185d427
No known key found for this signature in database
GPG key ID: DC2B16215ED5412A

View file

@ -329,14 +329,9 @@ run_catalyst_commands() {
if [[ ${preclean} == 1 ]]; then
rm -rf "${TMP_PATH:-/tmp}/catalyst-auto".*
snapshot_cache=$(catalyst_var snapshot_cache)
if [[ -z ${snapshot_cache} ]]; then
echo "error: snapshot_cache not set in config file"
exit 1
fi
pushd "${BUILD_SRCDIR_BASE}" >/dev/null || exit 1
rm -rf --one-file-system \
kerncache packages snapshots tmp "${snapshot_cache}"/*
kerncache packages snapshots tmp
popd >/dev/null
fi