Skip to content

Commit a9f95ac

Browse files
committed
[fix] : Disable cache dir in chroot
1 parent 30b777d commit a9f95ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ make_packages_aur() {
591591

592592
# prepare for yay
593593
cp -rf --preserve=mode "${script_path}/system/aur.sh" "${airootfs_dir}/root/aur.sh"
594-
sed "s|https|http|g; s|^#?\\s*CacheDir|#CacheDir|g" "${build_dir}/pacman-${arch}.conf" > "${airootfs_dir}/etc/alteriso-pacman.conf"
594+
sed "s|^CacheDir =|#CacheDir =|g" "${build_dir}/pacman-${arch}.conf" > "${airootfs_dir}/etc/alteriso-pacman.conf"
595595

596596
# Run aur script
597597
_chroot_run "bash $([[ "${bash_debug}" = true ]] && echo -n "-x") /root/aur.sh ${_pkglist_aur[*]}"
@@ -613,7 +613,7 @@ make_pkgbuild() {
613613

614614
#-- ビルドスクリプトの実行 --#
615615
cp -rf --preserve=mode "${script_path}/system/pkgbuild.sh" "${airootfs_dir}/root/pkgbuild.sh"
616-
sed "s|https|http|g; s|^#?\\s*CacheDir|#CacheDir|g" "${build_dir}/pacman-${arch}.conf" > "${airootfs_dir}/etc/alteriso-pacman.conf"
616+
sed "s|^CacheDir =|#CacheDir =|g" "${build_dir}/pacman-${arch}.conf" > "${airootfs_dir}/etc/alteriso-pacman.conf"
617617

618618
# Run build script
619619
_chroot_run "bash $([[ "${bash_debug}" = true ]] && echo -n "-x") /root/pkgbuild.sh /pkgbuilds"

0 commit comments

Comments
 (0)