Remove stale AUR packages from cache during build

This commit is contained in:
2Shirt 2018-01-27 15:52:49 -07:00
parent 1cd3571253
commit 8e05cb0e40

View file

@ -296,6 +296,13 @@ function build_iso() {
chown root:root "$LIVE_DIR" -R
chmod 700 "$LIVE_DIR/airootfs/etc/skel/.ssh"
chmod 600 "$LIVE_DIR/airootfs/etc/skel/.ssh/id_rsa"
# Removing cached (and possibly outdated) custom repo packages
for package in $(cat "$ROOT_DIR/.linux_items/packages/aur"); do
if [[ -f /var/cache/pacman/pkg/${package}* ]]; then
rm /var/cache/pacman/pkg/${package}*
fi
done
# Build ISO
prefix="${KIT_NAME_SHORT}-Linux"