Remove stale AUR packages from cache during build
This commit is contained in:
parent
1cd3571253
commit
8e05cb0e40
1 changed files with 7 additions and 0 deletions
|
|
@ -297,6 +297,13 @@ function build_iso() {
|
||||||
chmod 700 "$LIVE_DIR/airootfs/etc/skel/.ssh"
|
chmod 700 "$LIVE_DIR/airootfs/etc/skel/.ssh"
|
||||||
chmod 600 "$LIVE_DIR/airootfs/etc/skel/.ssh/id_rsa"
|
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
|
# Build ISO
|
||||||
prefix="${KIT_NAME_SHORT}-Linux"
|
prefix="${KIT_NAME_SHORT}-Linux"
|
||||||
label="${KIT_NAME_SHORT}_LINUX"
|
label="${KIT_NAME_SHORT}_LINUX"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue