Cleanup stage3 package cache before building.

This commit is contained in:
Alexis Lahouze 2019-01-12 18:45:18 +01:00
parent c271584874
commit 692a86b0b1

View File

@ -23,6 +23,9 @@ ln -sf /var/lib/catalyst/store/builds/$(basename ${STAGE3_TAG}) \
wget -q -N -P /var/lib/catalyst/store/snapshots/ \ wget -q -N -P /var/lib/catalyst/store/snapshots/ \
https://gentoo.osuosl.org/releases/snapshots/current/portage-latest.tar.bz2 https://gentoo.osuosl.org/releases/snapshots/current/portage-latest.tar.bz2
# Cleanup stage3 package cache
rm -Rf /var/lib/catalyst/store/packages/default/stage3-amd64/*
# Update stage3 snapshot # Update stage3 snapshot
catalyst -c /var/lib/catalyst/catalyst.conf -f /var/lib/catalyst/stage3.spec catalyst -c /var/lib/catalyst/catalyst.conf -f /var/lib/catalyst/stage3.spec